HI Everyone,
I am currently learning unity, I have an NPC that you can talk to, the text scrolls and appears on screen perfectly fine, when i try to make a dialog window(such as a GUITexture) This appears on top of the text due to the OnGUI() method being always on top, I am looking for a way to have this “Dialog Window” to appear on screen when the interaction happens, have the text scroll across it (which my script already does on screen) and then the Dialog Window to disappear. I have made an object that has a script attached to it that draws the rect to the specific size i would like, which is a manipulation of current screen height/width, but as i have to use the OnGUI function this appears above the text. I am aware there are free GUI managers around or ones you can pay for, but as i am wanting to learn about unity i think this would be the wrong option for me right now.
Any help given will be much appreciated!