Object.operator bool Manual     Reference     Scripting  
Scripting > Runtime Classes > Object
Object.operator bool

static implicit function bool (exists : Object) : bool

Description

Does the object exist?

if (rigidbody) ...

is the same as

if (rigidbody != null) ...