Search Unity

How do I get this thumb to show up?

Discussion in 'Immediate Mode GUI (IMGUI)' started by Jessy, Jul 30, 2008.

  1. Jessy

    Jessy

    Joined:
    Jun 7, 2007
    Posts:
    7,325
    Code (csharp):
    1. var playheadSlider : GUIStyle;
    2. var playheadThumb : GUIStyle;
    3.  
    4. function OnGUI(){
    5.  
    6.     var playheadImage = playheadSlider.normal.background;
    7.     var manualTime : float = 0;
    8.     manualTime = GUI.HorizontalSlider(  Rect(0, 0, playheadImage.width, playheadImage.height),
    9.                                             manualTime, 0, 1,
    10.                                             playheadSlider, playheadThumb);
    11. }
    I see the slider, but I don't see a thumb. I have an image set to the normal state of each GUIStyle.
     
  2. Jessy

    Jessy

    Joined:
    Jun 7, 2007
    Posts:
    7,325