Not recieving OnMouseEnter and OnMouseExit events

I have a GameObject that doesn’t ever trigger mouse over events. The mesh of the object is generated at run time and the collision is resized to fit that mesh (which I have verified in the editor window). It is also not in the Ignore Raycast layer. Other objects in the scene respond to mouse events using the same Behavior. Is there anything else I should check for?

-Mortoc

Start or Update method are called?
The collision object is active?
Insert a Debug.Log in events to be sure they are not called.

Thanks for replying.

So I tested it and yes, both Start and Update are being called as expected. The collision object, a box collider, is active and shows up with the correct dimensions in the editor.

I still haven’t made any progress on this issue so any ideas would be helpful.

-Mortoc

I can’t think of a single thing. Maybe you could create and upload a small project that shows this issue so we can take a look.

–Eric

Is there a collider between the cursor and the object? For example, a collider on the camera?

Draw a guizmo of a ray from the mouse position to the hit.point, maybe is hitting something else.

.ORG