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 - Invisible dropdown icon in the hierarchy #90

Open SiarheiPilat opened 4 months ago

SiarheiPilat commented 4 months ago

Unity version: 2022.3.14f1

The bug: Gameobject that has children doesn't have a dropdown icon that user clicks to expand/collapse children hierarchy making it look like the gameobject has no children. Gameobject that have no children incorrectly display dropdown icons. Could be that it's either showing that all top level gameobjects have children or that all top level gameobjects have no children.

To reproduce:

  1. Create a new project via Unity Hub using '3D (built-in)' template
  2. Install HierarchyDecorator via git URL
  3. Go to Project Settings -> Editor, scroll down to 'Enter Play Mode Settings' and check 'Enter Play Mode Options' checkbox
  4. Create an empty gameobject using hierarchy menu, duplicate a few times
  5. Parent duplicated gameobjects to the original empty gameobject, collapse the hierarchy
  6. Save the scene
  7. Press play to start the game
  8. Press play again to stop

Bug screenshots: image image How it should be: image

SiarheiPilat commented 4 months ago

How that editor setting looks: image

WooshiiDev commented 1 month ago

Hey there, this is fixed on the development branch and will be in the next release just coming up. I've rewritten how game objects + components are iterated over which should fix odd occurrences like this.

Thanks for noticing this though, as this also breaks worse when you try deleting any instance after this occurs.

Dorifor commented 1 week ago

any news on when the new release comes out @WooshiiDev ?

thx in advance