- Home /
Text Asset to be displayed: NOT WORKING!! HELP!!
var buttonText : TextAsset[];
static var txtRef : TextAsset[];
function Start() { txtRef = buttonText; }
function OnGUI() { if(GUI.Button(Rect(Screen.width/10- 150,50,200,30),GUIContent("Anatomical Divisions", "Anatomical Divisions"))){ openTxt=buttonText[0].text;
}
function OnMouseEnter() { openTxt=buttonText[0].text;
}
} what else would i have to do to get this text asset string to be displayed on Mouse down!
Please format your code. You must have realized when you posted it that it's not very readable.
Plus, your tag choices are awful/unhelpful.
The "NOT WOR$$anonymous$$ING!! HELP!!" in your title is a real turn-off. We're all asking questions because we need help. Best to start on the right foot by not offending our delicate sensibilities.
Your answer
Follow this Question
Related Questions
Issue displaying text on screen 1 Answer
Displaying Text On touch 2 Answers
How exactly "\t" works? 4 Answers
Display text when near an object, then go away 0 Answers
Display GUI Text after delay ? 1 Answer