Content-Length: 17819 | pFad | https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Vector2.Index_operator.html
Access the x or y component using [0] or [1] respectively.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { Vector2 p = new Vector2(); p[1] = 5; // the same as p.y = 5 } }
Fetched URL: https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Vector2.Index_operator.html
Alternative Proxies: