| [ Web Proxy ] |
| Viewing: https://docs.unity3d.com/ScriptReference/Object-operator_ne.html | [Back] [Original] |
| Parameter | Description |
|---|---|
| x | The first object to compare. |
| y | The object to compare the first object to. |
Compares if two objects refer to a different object.
using UnityEngine;
public class Example : MonoBehaviour { Transform target; void Update() { // the target object does not refer to the same object as our transform if (target != transform) { print("Another object"); } } }
| Web Proxy Viewer | New URL | Original Page |