November 2019
Intermediate to advanced
404 pages
12h 9m
English
The UI uses a separate layout system to handle the regeneration of certain element types, which operates in a similar way as dirtying a Canvas. UIImage, UIText, and LayoutGroup are all examples of components that fall under this system. Many things can cause a layout system to become dirty, the most obvious of which are enabling and disabling such elements. However, if we want to disable a portion of the UI, we can avoid these expensive regeneration calls from the layout system by simply disabling the Canvas component they are children of. This can be done by setting the Canvas component's enabled property to false.
The drawback of this approach is that, if any child objects that ...
Read now
Unlock full access