Versions with this page:
Versions without this page:
Access the x or y component using [0] or [1] respectively.
x
y
using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { public Vector2 p; void Example() { p[1] = 5; } }