Hierarchy Folders

I think it happened when I installed Power Inspector, cause I can’t reproduce it again either.
If I manage to do so I will share the logs here.
Thanks…

1 Like

Hello, I’m running into a issue importing this into my project. I have already component name added to the project and when I try to add this package it seems like the asset importer thinks the package is under another folder (probably shares the same GUID or something). Which then ends up giving issues since the folder would contain 2 .asmdef files.

Is there anyway to have both in the same project?

9930114--1436796--upload_2024-7-8_20-38-23.png

@Rotary-Heart
Oh… yeah, that probably has something to do with shared guids. Thanks for letting me know!

As a temporary workaround, you could import Hierarchy Folders into another empty project, and then copy-paste the contents of the <Your Project's Path>\Packages\com.sisus.hierarchy-folders\ folder from there.

I’ll try to get the issue with the package importing fixed on my end asap.

The package importing issue indeed went away after I manually replaced the guid in a couple of .meta files.
I’ll submit an update the asset store with the fix shortly.

1 Like

Hi, updated today to the latest version and can’t change icons anymore - or anything for that matter, since the tab in Edit>Preferences is now gone on 2022.3.35f1 - checked in a clean project and my work project and it’s poof.

AH!!! Always after I report something I figure it out.
It moved to Project Settings but the docs still say preferences :smile::smile:

EDIT:
Okay, changing settings and folder colors don’t work, the plugin throws errors after.

Parent directory must exist before creating asset at Assets/Project Settings/HierarchyFoldersSettings.asset.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Sisus.HierarchyFolders.HierarchyFolderPreferences:SaveState () (at ./Packages/com.sisus.hierarchy-folders/Scripts/HierarchyFolderPreferences.cs:470)
Sisus.HierarchyFolders.HierarchyFolderSettingsProvider:smile:rawPreferencesGUI () (at ./Packages/com.sisus.hierarchy-folders/Scripts/Editor/HierarchyFolderSettingsProvider.cs:117)
Sisus.HierarchyFolders.HierarchyFolderSettingsProvider:smile:rawPreferencesGUI (string) (at ./Packages/com.sisus.hierarchy-folders/Scripts/Editor/HierarchyFolderSettingsProvider.cs:52)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

and

UnityException: Creating asset at path Assets\Project Settings\HierarchyFoldersSettings.asset failed.
Sisus.HierarchyFolders.HierarchyFolderPreferences.SaveState () (at ./Packages/com.sisus.hierarchy-folders/Scripts/HierarchyFolderPreferences.cs:470)
Sisus.HierarchyFolders.HierarchyFolderSettingsProvider.DrawPreferencesGUI () (at ./Packages/com.sisus.hierarchy-folders/Scripts/Editor/HierarchyFolderSettingsProvider.cs:117)
Sisus.HierarchyFolders.HierarchyFolderSettingsProvider.DrawPreferencesGUI (System.String searchContext) (at ./Packages/com.sisus.hierarchy-folders/Scripts/Editor/HierarchyFolderSettingsProvider.cs:52)
UnityEditor.SettingsProvider.OnGUI (System.String searchContext) (at <985a800f5fdc4a78aa4c601fb18da906>:0)
UnityEditor.SettingsWindow.DrawControls () (at <985a800f5fdc4a78aa4c601fb18da906>:0)
UnityEditor.SettingsWindow.DrawSettingsPanel () (at <985a800f5fdc4a78aa4c601fb18da906>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.IMGUIContainer.ProcessEvent (UnityEngine.UIElements.EventBase evt) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase evt) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <bc50903cb89f471a912896850e6a5dc3>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <7b8748cfa7ae431097560883dfb0ca94>:0)

Thanks for letting me know @Bwacky !

I’ve submitted an update to the asset store that fixes this - and updates the documentation as well :smile:

The logic for converting the project settings asset path from an absolute to a local path had to be adjusted a little bit, after everything was moved under the Packages folder in the previous update.

1 Like

Is there a way to set custom colors for each folder? I am used to organizing things by color, so I can quickly see what is going on.

Otherwise, great asset!

Hey @astral_stargazer0 , it’s great to hear you’re enjoying using the asset!

Customizing the colors of hierarchy folders is not supported at the moment, but it should be quite easy to implement - I can look into adding in support for that in the next version :slightly_smiling_face:

1 Like