Search Unity

Bug Folder inspector gone, can't edit labels

Discussion in 'Editor & General Support' started by arkano22, Apr 21, 2023.

  1. arkano22

    arkano22

    Joined:
    Sep 20, 2012
    Posts:
    1,924
    Hi,

    I've updated my project from 2019 to 2021.3 LTS. In my project I label folders to keep things organized and perform partial builds, however when I select a project folder the inspector doesn't update (still shows whatever asset/object was last selected) so I can no longer edit folder labels, and can't use our custom build pipeline as a result.

    Found this exact same issue in the tracker, which states it was fixed in 2018.1. Seems to be back for 2021:
    https://issuetracker.unity3d.com/issues/folder-labels-can-not-be-added-or-edited-in-the-inspector

    any thoughts? Also found these threads asking for the folders inspector to disappear:
    https://forum.unity.com/threads/why-does-clicking-on-a-folder-change-my-inspector.956124/
    https://forum.unity.com/threads/please-change-inspector-folder-behavior.1043053/

    I hope Unity didn't just nuke this functionality!
     
    Last edited: Apr 21, 2023
  2. Adrian

    Adrian

    Joined:
    Apr 5, 2008
    Posts:
    1,065
    Works fine on 2021.3 here. The linked issue seems more to be the problem that the folder is showing in the inspector but the asset labels section is missing – while in your case the problem is the inspector is not showing the folder at all?

    Are you using the the two-column project browser? In that case you need to select the folder in the right column, selecting one in the left column does not select it and will not show it in the inspector.

    To narrow down the issue you could try forcing the selection using
    Selection.activeObject = AssetDatabase.LoadMainAssetAtPath("Assets/Path/To/Folder");
    or edit the labels using AssetDatabase.SetLabels.
     
  3. arkano22

    arkano22

    Joined:
    Sep 20, 2012
    Posts:
    1,924
    Thank you for replying! nope, using the two-column project browser and selecting folders in the right column (as opposed to the left one, where the folder hierarchy is shown) doesn't work for me either.

    For the time being I resorted to editing the .meta files themselves to add/remove labels. Cumbersome, but gets the job done.