yasirkula / UnityRuntimeInspector

Runtime Inspector and Hierarchy solution for Unity for debugging and runtime editing purposes
MIT License
1.67k stars 135 forks source link

Collapse and decollapse icon still shown even though there's no child in the drawer #57

Open ReDarkTechnology opened 1 month ago

ReDarkTechnology commented 1 month ago

Description of the bug

I used the GameObjectFilter feature in RuntimeHierarchy to hide billboard objects with this script

hierarchy.GameObjectFilter += (Transform obj) => {
    return obj.GetComponent<BillboardSprite>() == null;
};

But it still shows the collapse and decollapse icon image

Reproduction steps

Platform specs

Please provide the following info if this is a Unity 3D repository.

Additional info No log.

yasirkula commented 1 month ago

Yes this is a known issue. To avoid this issue, at each RuntimeHierarchy refresh, each Transform with children must iterate over all of their children to see if all of them are filtered out. For Transforms with lots of children, my initial assumption is that that'll take considerable amount of time. If you have any ideas, please let me know.