- Home /
Question by
mattehunter1 · May 26, 2014 at 04:40 PM ·
textmouseovercolourclicking
I am making a MouseOver function and its not working
Im making a slender game but i cant make me text light up when i pull my mouse over it, does anyone know what is wrong with this code?
var initialColor : Color;
function Start() { initialColor = renderer.material.color; }
function OnMouseOver() { renderer.material.color = Color.red; }
function OnMouseExit() { renderer.material.color = initialColor; }
Comment
Your code is working. Have you attached a collider to your text ?
Your answer
Follow this Question
Related Questions
How to make text appear only when over button(highlighted) 2 Answers
Typewriter with coloured text 3 Answers
Text box pop up on mouseover 1 Answer