|
i seem to have a simple logic error. i'm trying to attach a 2d audio clip to a slider to control the volume but i'm having no luck. the slider is being created after a press of the button here is my code :
(comments are locked)
|
|
Well, this GUI code is all very well, but it doesn't actually change the volume of the Audio Source! As it is, you automatically set audio.volume = musicslider in the Awake function, but it never gets set after that, so the slider does nothing! You need to add an 'Update' function to apply the changes made in 'OnGUI'.
(comments are locked)
|
