This may cause more confusion than help - but its a simple JS to grab user input - just drop it on a GUIText object.
WARNING: you have to modify the script - its not ‘plug n play’
anyway… hope it gives you a general idea
//If we click on the textbox, allow input
function OnMouseUp () {
System_Globals.instance.ClearUserName();
System_Globals.intTABCurrent = 1;
}
function Update () {
//If Grabinput is on, then capture keystrokes
if(System_Globals.intTABCurrent==1){
System_Globals.instance.ClearUserName();
for (var c : char in Input.inputString) {
// Backspace - Remove the last character
if (c == "\b") {
if (guiText.text.Length != 0)
guiText.text = guiText.text.Substring(0, guiText.text.Length - 1);
}
// End of entry
else if (c == "\n") {
System_Globals.intTABCurrent = 0;
}
// Pressed TAB key - do nothing
else if (c == "\t") {
}
// Normal text input - just append to the end
else
{
var intr : Rect;
intr = guiElement.GetScreenRect();
//if the text will overflow the textbox, ignore user input
if(intr.width < 100){
guiText.text += c;
}
}
}
}
}
ps. I had a global script holding the Tab control variables, plus a background textbox GUITexture that would enable text input when enabled.