|
I don't understand why this isn't working, I've a cube on the scene with a simple collider, in the OnMouseEnter a simple print("hello") for testing, but when I move the mouse over the 3d object the function isn't called. Am I forgetting something? What the problem could possibly be?
(comments are locked)
|
|
where u attached script (where u make function OnMouseEnter )on cube or not, if u attached on cube then it will work perfectly.
(comments are locked)
|
|
The object using OnMouseEnter must have a collider. Check if yours does.
(comments are locked)
|

Here's a silly question: Is the script attached to the gameobject?
Yes it is, I really don't know what to do.
http://unity3d.com/support/documentation/ScriptReference/MonoBehaviour.OnMouseEnter.html
Already looked at it, seems like all is set up correctly, but it doesn't work
do you have another collider blocking the collider you're trying to come into contact with?