Version: 2019.4
public static bool operator != (Object x, Object y);

説明

二つのオブジェクトが異なるオブジェクトを参照しているか比較します

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