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] [Unity 2022] useCustomGameObjectIcon doesn't function on Unity 2022. #6

Closed JustBuddy closed 5 months ago

JustBuddy commented 5 months ago

A previous feature request of mine outside of GitHub asked for these color tags:

image

… to be visible in the hierarchy. This works in 2019, but 2022 broke that behavior as it seems. This option is reflected in the settings as "Use Custom GameObject Icon".

Expected look: image

Same thing in 2022: image

Tested version: H+ 1.2.0 Fresh projects with nothing but the SDK and H+.

JustBuddy commented 5 months ago

I tried to resolve this myself, but had no luck figuring out what is wrong. H+ uses EditorGUIUtility.GetIconForObject, which is present in 2022 just fine.

Referring to Line 648, called in Line 488.

Dreadrith commented 5 months ago

Thank you for trying 👍 Handled with commit https://github.com/Dreadrith/HierarchyPlus/commit/c3c3422216cdc60bb62722abbc013085018a4811