|
what i want to do is create a slider in place of where a button was or next to the button. what i was trying to do was create the slider inside the button but when clicked would not create the slider. anyone know how to do this? any help would be appreciated. my code looks like this: this was my understanding of it.
(comments are locked)
|
|
Ok. The problem here is that the 'GUI.Button' function returns 'true' only on the exact frame that it gets pressed! The reason why your slider isn't appearing is because it is appearing for exactly one frame, and then disappearing again. If you want the volumeControl button to disappear permanantly and get replaced by the 'SliderForMusic' slider, you could do this- thank you so much!
Jan 07 '12 at 04:21 AM
cman19
(comments are locked)
|

Could you edit your question to include the snippet from your OnGUI function relevant to the problem? What you're trying to do is quite possible, so the problem is probably in your logic somewhere.
can do give me a sec