Skip to main content
1 of 3
Marcel
  • 1
  • 1
  • 1

Regarding if check for objects

Very simple question:

If you have a Game Object, and you want to check if it exists, is

if (gameObject) { }

the same as

if (gameObject != null) { }

and if not, what is actually being evaluated in the first statement?

Marcel
  • 1
  • 1
  • 1