WooshiiDev / HierarchyDecorator

Lightweight Unity Plugin transforming the Hierarchy into what it should be. Adds headers, styles, icons and more.
MIT License
1.02k stars 47 forks source link

Bug - Objects with hidden children have an unusable unfold arrow #73

Open yiliansource opened 1 year ago

yiliansource commented 1 year ago

Current Unity version used Unity 2021.3.7f1 Personal

Describe the bug Objects with hidden children still have the "unfold" arrow drawn, but it cannot be used. The arrow should most likely not be shown at all in this case.

To Reproduce (If applicable) Select an object in the hierarchy and run the following editor script:

new GameObject("hidden")
{
    hideFlags = HideFlags.HideAndDontSave,
    transform =
    {
        parent = Selection.activeGameObject.transform
    }
};

The selected object will now have a hidden child and display the unfold arrow.

Screenshots For example: image The children of this Cinemachine object are (most likely) hidden.

WooshiiDev commented 1 year ago

Cheers for this. Yeah this is something I had not considered (and I've not used cinemachine in a while too). I think some extra settings would be cool for showing hidden objects.

I do have editor flags planned, but I could bump them up to get this sorted, or make a quick fix for the time being.

For now, I'll fix this as a bug, then get editor flags on the priority list as this has came up.

Appreciate it yilly! ✨

WooshiiDev commented 1 year ago

Hey Yills, should be fixed now pushed to both master & develop.

Let me know if it works for you!