| [ Web Proxy ] |
| Viewing: https://docs.unity3d.com/ScriptReference/Vector2-operator_add.html | [Back] [Original] |
| Parameter | Description |
|---|---|
| a | The first vector to add. |
| b | The second vector to add. |
Adds two vectors.
Adds corresponding components together.
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void Start() { print(new Vector2(1, 2) + new Vector2(2, 3)); } }
| Web Proxy Viewer | New URL | Original Page |