static operator + (a : Vector3, b : Vector3) : Vector3
Description
Adds two vectors.
Adds corresponding components together.
print (Vector3(1,2,3) + Vector3(4,5,6));
using UnityEngine;
using System.Collections;
public class example :
MonoBehaviour {
void Awake() {
print(
new Vector3(1, 2, 3) +
new Vector3(4, 5, 6));
}
}
import UnityEngine
import System.Collections
class example(
MonoBehaviour):
def
Awake():
print((Vector3(1, 2, 3) + Vector3(4, 5, 6)))