Versions with this page:
Versions without this page:
Acceda al componente x o y utilizando [0] o [1] respectivamente.
x
y
using UnityEngine;public class Example : MonoBehaviour { void Start() { Vector2 p = new Vector2(); p[1] = 5; // the same as p.y = 5 } }