Hideflags is mainly used to control the display of objects in the Hierarchy,inspector view to destroy the bit mask~
None: Normal visible objects by default ~
Api:
Hideinhierarchy: Hidden in the hierarchy view, and if it is saved in a resource, it is not displayed in Project View ~
Hideininspector: Hidden in Inspector View, unable to view its related components ~
Dontsave: Objects are not saved to the scene and are not destroyed when a new scene is created ~
Noteditable: objects can be displayed in the Inspector view, but cannot be edited ~
Hideanddontsave: A combination of hideinhierarchy and Dontsave
void Start () { var c = gameobject.createprimitive (primitivetype.cube); = Hideflags.hideinhierarchy; = hideflags.hideininspector; = hideflags.noteditable;}
Hideininspector: (Not nothing in Inspector view, just hide each component)
The use of hideflags in unity