- Home /
Question by
FPSFragger · Aug 31, 2013 at 05:04 PM ·
not working
OnMouseEnter not working.
No matter how hard I try I cannot seem to get the OnMouseEnter command working.
Here is my script:
function OnMouseEnter()
{
renderer.material.color = Color.red;
}
function OnMouseExit()
{
renderer.material.color = Color.white;
}
Any responses will be thanked, and yes, I do have a collider on the object.
Comment
Your color will only change if the shader you are using supports color. If you put a Debug.Log() statement in each function, does it output? Note these functions will fail if there is another collider (visible or not) in front of the object with this script.
Your answer
Follow this Question
Related Questions
isStatic not fully working... or so it seems. 1 Answer
Enter Vehicle Script not working! 1 Answer
Main menu not working 1 Answer
Menu script having problem 1 Answer
GUI Button not working...but the the script is correct... 2 Answers