Version: 2019.4
public float this[int] ;

説明

[0] や [1] を使用して xy 成分にアクセスします

using UnityEngine;

public class Example : MonoBehaviour { void Start() { Vector2 p = new Vector2(); p[1] = 5; // the same as p.y = 5 } }