Version: 2019.1
public float this[int] ;

Description

Доступ к x или y компонентам используются [0] или [1] соответственно

using UnityEngine;

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