- Home /
mouse displays GUI text when on objects
Still learning scripting over here, starting small. I know this is simple but need help
I got this script here;
var textObject : GUIText;
function OnMouseOver () {
textObject.text = gameObject.name;
}
Now this script shows the name of the object when you hover over it, however it stays on screen. How can I make it disapeer again? So when i look at the object the text appear, when i look away the text is gone and so on. I think i need to use something like function OnMouseExit(){ ?
If you please know a other way which is easier, give me ! thanks
Comment
Your answer
Follow this Question
Related Questions
custom mouse changing when hovering over objects 1 Answer
Assigning two variables ? 1 Answer
Two variables in a GUI Button? 1 Answer
How can I display text onscreen dynamically? 2 Answers
Situational GUI / GUI on mouse over? 4 Answers