Unity 6.3
0 онлайн 13 гостей 3 в системе
Вход

Object.operator !=

Declaration

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