Method AddToHideFlagsRecursively
AddToHideFlagsRecursively(GameObject, HideFlags)
Adds hideFlags to the hide flags on this GameObject and all of its descendants.
Declaration
public static void AddToHideFlagsRecursively(this GameObject gameObject, HideFlags hideFlags)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | gameObject | The GameObject at the root of the hierarchy to be modified. |
| HideFlags | hideFlags | Should the GameObjects be hidden, saved with the scene or modifiable by the user? |
Remarks
This function combines the hideFlags with the existing flags of a GameObject.