- Home /
Question by
jamie · Jun 28, 2011 at 12:20 AM ·
guionmouseenter
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!
Comment
On$$anonymous$$ouseEnter works 100% of the time, as long as the object isn't blocked by something.
Your answer
Follow this Question
Related Questions
OnMouseDown 2 Answers
GUI flashing on hover 0 Answers
Change Font Style OnMouseEnter 0 Answers