- Home /
Getting the Value of a slider with 4.6 UI
Does anyone know how to do this? I'm trying to get the value of the slider so when the player brought down the volume in one scene, it stays the same on the next one. Thanks!
Answer by ExoArc · Nov 27, 2014 at 09:59 PM
Create a GameController object and manage the volume from there, have the slider adjust the value in the GameController class attached to the GameController object.
The GameController script requires a
DontDestroyOnLoad(gameObject);
So it doesn't get destroyed when you load a new scene.
Your answer
Follow this Question
Related Questions
How to Make a Vertical-Scroll Number Input Field, i.e. < > Value Amount 0 Answers
Volume Slider - Play a sound after modifying slider value and releasing the mouse 1 Answer
UI Slider Value Increases Far Too Slowly With Controller. 1 Answer
Better way of making a 4.6UI slider to return even values only 1 Answer