|
Hey everyone, I am new to Unity still with the way UnityScript works. Im making an application that whenever a user clicks on an info button an information window appears instead of just having another scene being the window. Please help I think what I am missing is very simple but for the life of me I can not spot it but I am sure whenever I get the answer ill have a DOH moment! TY
(comments are locked)
|
|
GUI.Button will only be true on the frame that the button is pushed, so the GUI.Window will only be called (displayed) on that frame. Instead, have a boolean, like 'show' that goes true when you click the button. Then if show is true, call GUI.Window. If you need to close the window, have a key or button that will set show false again, that will stop calling (displaying) the window.
(comments are locked)
|
