|
I have problem with OnMouseOver function. I want the GUI 3D Text to change its color from white to red on mouse hover,but when I run application nothing happens. Here's the code: The code is attached to 3D Text. And also Box Collider is added. How do I fix this problem?
(comments are locked)
|
|
It is.I created new font material with my fonts font Texture but now I have problem changing that new font materials color. Neither or: works.
(comments are locked)
|

ha! I just finished writing an answer suggesting the collider too! If you have added the collider then I don't see anything wrong with the script. Works fine for me.
I don't see any problem too, so I'm confused especialy because this is just a basic function.BTW...Sorry :D
Same here, works fine for me. I suggest, if you haven't already, creating a new scene with a 3DText, adding a new box collider then attaching the script. Let us know the results.
Yeah, I tried it again with default Arial font and it http://work.It seems that there is problem with font I was using before. How could I fix it so that imported font works?
Hmm, the 3DText isn't on the IgnoreRaycast layer is it? OnMouseOver returns on colliders so the text itself shouldn't have anything to do with it.