Smart-Hierarchy icon indicating copy to clipboard operation
Smart-Hierarchy copied to clipboard

Collection header injection causes broken Inspector in some cases

Open TheXRMonk opened this issue 3 years ago • 5 comments

Steps to reproduce:

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

TheXRMonk avatar Apr 13 '21 13:04 TheXRMonk

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

neon-age avatar Apr 13 '21 15:04 neon-age

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

TheXRMonk avatar Apr 14 '21 08:04 TheXRMonk

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

neon-age avatar Apr 14 '21 08:04 neon-age

The fix is up in 0.3.1-pre.8

neon-age avatar Apr 14 '21 09:04 neon-age

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.

neon-age avatar Apr 15 '21 01:04 neon-age