#this only works if `Value` is not

1 messages · Page 1 of 1 (latest)

scarlet current
#

Why is this the case?

cloud jungle
#

because Unity overrides the == operator such that == null also checks if the object is destroyed.

But the ?? operator (among others) does not respect this

#

so if your object was destroyed the ?? will think it is NOT null.

#

which is usually not desired