包含此页的版本:
不含此页的版本:
分别使用 [0]、[1]、[2] 访问 x、y、z 分量。
using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { public Vector3 p; void Example() { p[1] = 5; } }