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

GUI slider

Discussion in 'Immediate Mode GUI (IMGUI)' started by RingOfStorms, Jan 29, 2011.

  1. RingOfStorms

    RingOfStorms

    Joined:
    Oct 23, 2010
    Posts:
    584
    So Im not sure how to do this so im going to ask here. I'm trying to use a GUI slider to change to speed of the game. What would this script look like? So like you would change the timescale from a % of 1 to 3, so ur bar would be doing all numbers between 1 and 3, speeding it up as it is farther scrolled.
    Note: I want a horizontal slider, so if u post code make it horizontal for ease of use :)
     
  2. sangi93

    sangi93

    Joined:
    Aug 4, 2010
    Posts:
    77