UIPanel.LateUpdate is invoked too often in my game, I found hide an UIWidget by
GameObject.SetActive(false) will force the UIPanel to rebuild itself, So I have the following methods:
- set alpha to zero
- set localScale to zero
- move to a invisible position out of camera
The method 2 and method 3 works as expected, both make UpdateGeometry called less often, but I want to know the best way to hide and show UIWidget (and widgets in its children), any advise is appreciated, thanks