OnMouseEnter problem

Hi everybody, I’ve a problem with the OnMouseEnter function, seems like it’s never called if I’m too close to an object, but I’m making a 3d style adventure game, and I need it to be called when I’m really close to objects. What’s the problem? Thx everybody

The “enter” functions are called on one frame, when you first enter the area of the collider. Say you want to change the color, or set this as the selected object. Then an Enter/Exit pair is fine.

To have it keep doing something, use OnMouseOver (the version for physics is OnTriggerStay.) See http://unity3d.com/support/documentation/ScriptReference/MonoBehaviour.html for a listing of all of them.