public float this[int] ;

Descripción

Accede los componentes x, y, z, w utilizando [0], [1], [2], [3] respectivamente.

using UnityEngine;

public class Example : MonoBehaviour { void Start() { Vector4 p = new Vector4(); p[3] = 5; // the same as p.w = 5 } }