Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Label list is non-scrollable

Discussion in 'Addressables' started by Yerkisk, Jan 14, 2020.

  1. Yerkisk

    Yerkisk

    Joined:
    Jul 28, 2015
    Posts:
    38
    If you use a bunch of Labels for different items, you will notice that the list of Labels is a non-scrollable list, which means that you can't reach the bottom section to even Add a new Label anymore.
     
  2. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,204
    To fix this, in Packages/Addressables/Editor/GUI/LabelWindow.cs,

    add this at the top of the class, right after the declaration for m_Settings:

    Code (csharp):
    1.  
    2.         Vector2 scrollPosition;
    3.  
    Then, change the OnGUI function to look like this:

    Code (csharp):
    1.  
    2.         void OnGUI()
    3.         {
    4.             GUILayout.Space(7);
    5.             scrollPosition = GUILayout.BeginScrollView(scrollPosition, GUIStyle.none);
    6.             GUILayout.BeginVertical(EditorStyles.label);
    7.             m_LabelNamesRl.DoLayoutList();
    8.             GUILayout.EndVertical();
    9.             GUILayout.EndScrollView();
    10.         }
    11.  
     
    Last edited: Feb 18, 2020
    Yerkisk likes this.
  3. marcianosd

    marcianosd

    Joined:
    Nov 6, 2018
    Posts:
    4
    bug still persists in 1.6.0 ...

    adding a workaround is easy but i hope this gets fixed soon
     
    Jaimi likes this.
  4. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,204
    Is there a public GIT for this, where we can submit pull requests?