- Home /
How to add textboxes in Unity 3d
Hey does anyone know how to add textboxes in Unity using javascript?
Answer by superventure · Jan 22, 2011 at 05:28 AM
try
var speech : String;
function OnGUI () {
GUI.Box (Rect (200,500,500,70), speech);
}
you just type what you want the npc to say in the inspector window. You can even turn it on and off through script whenever you please.
Answer by 3dDude · Jan 22, 2011 at 04:25 AM
Try looking at the GUI section... Search it in google or the docs... Hope this help!
Answer by BawsAnimations · Oct 01, 2012 at 03:23 AM
Wait, superventure, where would I insert that script? on my mouse look?
Your answer

Follow this Question
Related Questions
Can someone help me fix my Javascript for Flickering Light? 6 Answers
How to make a GUI.Button open/close a GUI.Box? 1 Answer
Im Doing HighScore System To My Game And There Is Something Wrong In My Scripts 0 Answers
Need help displaying score (JavaScript) 1 Answer
Display Object Positions in Gui Box 2 Answers