Quantcast
Channel: Questions in topic: "notepad"
Viewing all articles
Browse latest Browse all 22

How Do I Show and Hide GUI?

$
0
0
Hi guys. I am making an In-Game-Notepad so the player can write down notes, and I am trying to make it so that the "**Player**" can press "`n`" on his/her keyboard and either `Show` or **Hide** the Notepad. this is the script I have so far... var notePadText : String="NotePad..."; function OnGUI () { notePadText = GUI.TextArea (Rect (5, 5, 200, 300), notePadText, 200); } ok so now I wan't to make it so the player **presses** a button (*on there keyboard*) and the notepad **shows** and **hides** but I cannot figure out how I can achieve that. Thank you in advance! -Izzy

Viewing all articles
Browse latest Browse all 22

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>