Versions with this page:
Versions without this page:
Accede los componentes x, y, z, w utilizando [0], [1], [2], [3] respectivamente.
using UnityEngine;public class Example : MonoBehaviour { void Start() { Quaternion p = new Quaternion(); p[3] = 0.5f; // the same as p.w = 0.5 } }