OnMouseEnter not working, another method?

Hey,

I need to check to see if the player is looking at an object, in the past I have used OnMouseEnter but it isn’t working in this case for an unknown reason (I have a collider and rigidbody on the object).

Is there another way I can make sure the player is looking at an object before I display the GUI? I know I could use a RayCast but to be honest I hate using them.

Cheers!

Use this http://unity3d.com/support/documentation/ScriptReference/Renderer-isVisible.html