The use of hideflags in unity

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.