Version: 2023.1
언어: 한국어
public float this[int] ;

설명

Access the x, y, z, w components using [0], [1], [2], [3] respectively.

using UnityEngine;

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