Object.operator != Manual     Reference     Scripting  
Scripting > Runtime Classes > Object
Object.operator !=

static operator != (x : Object, y : Object) : bool

Description

Compares if two objects refer to a different object

var target : Transform;
function Update ()
{
// the target object does not refer to the same object as our transform
if (target != transform)
{
print("Another object");
}
}