Version: 2021.1
public static Vector3 operator + (Vector3 a, Vector3 b);

描述

将两个向量相加。

将相应的分量相加。

// prints (5.0,7.0,9.0)

using UnityEngine; using System.Collections;

public class ExampleClass : MonoBehaviour { void Start() { print(new Vector3(1, 2, 3) + new Vector3(4, 5, 6)); } }