I wasn't able to get this working for our final hand-in of this project. However the principle I tried to apply in code was to provide a float value to the AudioListener component, which would then be influenced by where the slider is on it's bar/value.
Then in Unity's Editor, I simply had to give the UI Slider a reference to the OnGui void in the SceneCameraManager and set the starting value of the Slider to it's highest of 1 (lowest being 0).
I added an additional button to the pause menu named "Options" and that would switch off all the buttons visible above and turn on the Slider and a Button that would return the Player to the previous Pause Menu screen.
No comments:
Post a Comment