Vector3
- Angle
- ClampMagnitude
- Cross
- Distance
- Dot
- forward
- Lerp
- magnitude
- Max
- Min
- MoveTowards
- normalized
- Normalize
- one
- operator !=
- operator *
- operator +
- operator -
- operator /
- operator ==
- OrthoNormalize
- Project
- Reflect
- right
- RotateTowards
- Scale
- Slerp
- SmoothDamp
- sqrMagnitude
- this [int index]
- ToString
- up
- Vector3
- x
- y
- zero
- z
Vector3.one 参数1
static var one : Vector3
Description描述
Shorthand for writing Vector3(1, 1, 1)
写Vector3(1, 1, 1)的简码。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
transform.position = Vector3.one;
}
}
transform.position = Vector3.one;
最后修改:2011年1月9日 Sunday 17:15