- Home /
Question by
BrookDaCow · Dec 15, 2015 at 09:49 PM ·
colors
Why won't script work on 3d text? (menu script)
So here is my code:
function OnMouseEnter() { GetComponent(Renderer).material.color = Color.grey; } function OnMouseExit() { GetComponent(Renderer).material.color = Color.white; }
When I assign this to a regular game object like a cube it works fine, changing to grey when I hover over it with my mouse and changing to white when I take it away. But when I try this with 3d text nothing happens no matter what I do. What am I doing wrong, and how do I fix this?
Comment