Vector4.operator + 运算符 加法
static operator + (a : Vector4, b : Vector4) : Vector4
Description描述
Adds two vectors.
两个向量相加。
Adds corresponding components together.
每个相对应的组件相加在一起。
C#
JavaScript
using UnityEngine;using System.Collections;public class example : MonoBehaviour {public void Awake() {print(new Vector4(1, 2, 3, 4) + new Vector4(4, 5, 6, 7));}}
// prints (5.0,7.0,9.0,11.0)print (Vector4(1,2,3,4) + Vector4(4,5,6,7));