Search Unity

  1. Dismiss Notice
  2. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  3. Dismiss Notice

Label list is non-scrollable

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

  1. Yerkisk

    Yerkisk

    Joined:
    Jul 28, 2015
    Posts:
    33
    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:
    5,721
    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:
    5,721
    Is there a public GIT for this, where we can submit pull requests?
     
unityunity