Version: 2021.2
言語: 日本語
public static Vector3 operator + (Vector3 a, Vector3 b);

説明

2 つのベクトルを加算します

各成分同士を加算します。

// 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)); } }