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.operator != 运算符 不等于
static operator != (lhs : Vector3, rhs : Vector3) : bool
Description描述
Returns true if vectors different.
如果向量不同返回真。
Very close vectors are treated as being equal.
非常接近的向量被视为是相等的。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public Transform other;
public void Awake() {
if (other && transform.position != other.position)
print("I'm at the different place than the other transform!");
}
}
var other : Transform;
if (other && transform.position != other.position)
print ("I'm at the different place than the other transform!");
最后修改:2010年12月20日 Monday 23:37