GUILayout.HorizontalSlider modification?

Hey.

Don’t really know how to explain this… I have created in my main menu > options in my a game, a horizontal slider to set how much money you should have upon starting a new game. My minimum value is 800 and the maximum is 16000. When sliding the slider I can set it to 8233.23583 if I want to… Is there a way to make it increase/decrease by 50 each “step”? Hope you know what I mean :slight_smile:

My “solution” for this right now is this:

			GUILayout.BeginHorizontal ();
			GUILayout.Label ("Starting Money:");
			if(GUILayout.Button ("-"))
			{
				startingMoney -= 50;
				if(startingMoney < 800)
					startingMoney = 800;
			}
			GUILayout.TextField (startingMoney.ToString ("$#####"), GUILayout.Width (300));
			if(GUILayout.Button ("+"))
			{
				startingMoney += 50;
				if(startingMoney > 16000)
					startingMoney = 16000;
			}
			GUILayout.Space (10);
			GUILayout.EndHorizontal ();

But with this solution it would take forever to set the startingMoney to 16000… Making a RepeatButton increase/decrease the value to fast… So a slider would be the optimal solution, I guess…