HideFlags
Bit mask that controls object destruction, saving and visibility in inspectors. Unity HideFlags
Elements
Element | Description |
---|---|
HideFlags.DontSave | The object will not be saved to the Scene. It will not be destroyed when a new Scene is loaded. It is a shortcut for HideFlags.DontSaveInBuild |
HideFlags.DontSaveInBuild | The object will not be saved when building a player. |
HideFlags.DontSaveInEditor | The object will not be saved to the Scene in the editor. |
HideFlags.DontUnloadUnusedAsset | The object will not be unloaded by Resources.UnloadUnusedAssets. |
HideFlags.HideAndDontSave | The GameObject is not shown in the Hierarchy, not saved to to Scenes, and not unloaded by Resources.UnloadUnusedAssets. |
HideFlags.HideInHierarchy | The object will not appear in the hierarchy. |
HideFlags.HideInInspector | It is not possible to view it in the inspector. |
HideFlags.None | A normal, visible object. This is the default. |
HideFlags.NotEditable | The object is not be editable in the inspector. |