robot_2Generated
code_blocksInput

Description

The GameObjectFlags.Hidden field is a member of the GameObjectFlags enumeration in the Sandbox API. This flag is used to indicate that a game object should be hidden in the hierarchy or inspector views. It is a static, public field, meaning it can be accessed without instantiating the GameObjectFlags class.

Usage

Use the GameObjectFlags.Hidden flag when you want to hide a game object from the hierarchy or inspector. This can be useful for objects that should not be visible or editable during development or runtime.

Example

// Example of using GameObjectFlags.Hidden
GameObject myObject = new GameObject();
myObject.Flags |= GameObjectFlags.Hidden;

// This will hide 'myObject' in the hierarchy and inspector.