Dreadrith / HierarchyPlus

A general improvement to the unity hierarchy such as component icons, guide lines, row coloring and settings for customization.
GNU General Public License v3.0
35 stars 4 forks source link

[BUG] Toggling Gameobject also toggles adjacent component. #7

Closed JustBuddy closed 5 months ago

JustBuddy commented 5 months ago

H+ 1.2.0, Unity 2022

Whenever an GameObject is selected and then toggled, it will also toggle the component next in the list. This can have unintended impact on animations that toggle just the GameObject. I couldn't reproduce it consistently, but I believe it is a side-effect of the drag-toggle. https://splash.buddyworks.wtf/rKT10V7E.gif Unity_TtncPUlk3Z

In scenarios with more components, only the next component adjacent to the GameObject toggle gets disabled.

JustBuddy commented 5 months ago

I could not get this to happen again, will observe in case it was a fluke. Will close if it never happens again.

JustBuddy commented 5 months ago

I was able to make it happen again, but it is highly inconsistent. It can happen when toggling specific components on a gameobject off if that object has 5 or so components attached to that, like VRCFury Components like here: image

First assumption is some incompatibility with some other tool, or some odd condition with the drag-toggle feature. (As that never happened to me before that update.)

I'll report back whenever I find a consistent way to reproduce this.

Dreadrith commented 5 months ago

It might be some odd Rect manipulation from Unity internally that isn't on 2019 because ADO's scene GUI broke in 2022 in a weird way mostly concerning clicking things. i.e: The Layout and Repaint events had different Rects returned in some cases and what fixed it is to restrict some GUI to the Repaint event. I'll test it on 2022 at some point and see if I can get it to happen.

Dreadrith commented 5 months ago

Should be fixed with https://github.com/Dreadrith/HierarchyPlus/commit/0ecaef5e239a8c53b82a2efa775418e7252681dc