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!");