neon-age / Smart-Hierarchy

Human-friendly hierarchy for Unity.
MIT License
599 stars 43 forks source link

Collection header injection causes broken Inspector in some cases #28

Open TheXRMonk opened 3 years ago

TheXRMonk commented 3 years ago

Steps to reproduce:

  1. Create an empty GO
  2. Right-click it into a collection
  3. Ctrl+z
  4. ...
  5. cry... :(
neon-age commented 3 years ago

By 'breaking' you mean that Transform component is kept hidden?

TheXRMonk commented 3 years ago

By 'breaking' you mean that Transform component is kept hidden? Yes, this is what it looks like; image

neon-age commented 3 years ago

Think I fixed all issues related to header injection. Transform is no longer hidden using hideFlags

neon-age commented 3 years ago

The fix is up in 0.3.1-pre.8

neon-age commented 3 years ago

There is another issue caused by Prefab inspector. They sometimes name headers differently there (CollectionEditor_Collection_blabla instead of inspector title), and other times EditorElement is duplicated, somehow.. So injection throws bunch of errors.

image

I'll look into it later.