1. Enter the Microsoft Developer Challenge for a chance to win prizes. Read more about it here.
  2. Enter the Google Play Indie Games Contest in Europe. Read more about it here.
  3. Unity 5.5 is now released.
  4. Become a closed-alpha partner on the new Facebook games platform. Read more about it here.
  5. Get early access to our Google Daydream Technical preview. Click here for more details!

GUI slider

Discussion in 'Extensions & OnGUI' started by RingOfStorms, Jan 29, 2011.

  1. RingOfStorms

    RingOfStorms

    Joined:
    Oct 23, 2010
    Messages:
    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
    Messages:
    77