Bug - Foldouts Flicker
Closed this issue · 1 comments
Unity Version - All supported versions
Describe the bug
Due to the fixed update time on the hierarchyWindowItemOnGUI
when foldouts have to be manually drawn, there is a short flicker in their GUI update.
The flicker length depends on the child count - the more children the longer the flicker. This makes sense as after opening the foldout it then attempts to update the next instance(s) it comes across - the children.
To Reproduce (If applicable)
- Provide an instance with a header or activate two-tone background and give an instance experiencing either of those conditions a child.
Screenshots
Eh.
Additional context
Some form of light temporary cache needs created. Something that can check the current foldout value while the callback is going over the instance, and then recheck on the next instance to see if anything has changed.
If there is a change the cache needs to store the required foldout information until the callback is back on that original instance. The instance only updates when the callback is called, hence why it needs to be stored in that cache until then.
Fixed with cache lookup, will be added to 0.8.3