Author Topic: Component Selector has no scroll bars  (Read 2729 times)

beermoney

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 80
    • View Profile
Component Selector has no scroll bars
« on: January 15, 2014, 04:15:35 AM »
The component selector has no scroll bars, I have many fonts in my project and can't select all of them

I added this locally in ComponentSelector.cs
  1.         Vector2 scrollPos;
  2.  
  3.         /// <summary>
  4.         /// Draw the custom wizard.
  5.         /// </summary>
  6.         void OnGUI ()
  7.         {
  8.                 NGUIEditorTools.SetLabelWidth(80f);
  9.                 GUILayout.Label(mTitle, "LODLevelNotifyText");
  10.                 GUILayout.Space(6f);
  11.  
  12.                 scrollPos = GUILayout.BeginScrollView (scrollPos);
  13.  
  14.                 // ...
  15.  
  16.                 GUILayout.EndScrollView ();
  17.         }
  18.  

that might save you a few moments looking up the syntax

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Component Selector has no scroll bars
« Reply #1 on: January 15, 2014, 09:54:51 PM »
Thanks!