Adds two vectors.
Adds corresponding components together.
#pragma strict // prints (5.0,7.0,9.0) print(new Vector3(1, 2, 3) + new Vector3(4, 5, 6));
// prints (5.0,7.0,9.0)
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void Example() { print(new Vector3(1, 2, 3) + new Vector3(4, 5, 6)); } }