Version: 2017.1
public float this[int] ;

Descripción

Acceda al componente x o y utilizando [0] o [1] respectivamente.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Vector2 p; void Example() { p[1] = 5; } }