| [ Web Proxy ] |
| Viewing: https://docs.unity3d.com/ScriptReference/Vector4.Index_operator.html | [Back] [Original] |
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 } }
| Web Proxy Viewer | New URL | Original Page |