Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This means that a GameObject cannot be set to null, or have a null value. A GameObject is a reference type in Unity, meaning that it is a variable that holds a reference to an instance of an object. Reference types can be null, but Unity's GameObject type cannot be null because it is a value type. Therefore, attempting to set a GameObject to null will result in an error.