About 'Detecting Mouse In 3D'!

In this video (objectives)…

  1. Introduce Unity's OnMouseOver() message
  2. Show you how to troubleshoot message issues
  3. Log out which block our mouse is over.

After watching (learning outcomes)…

Use Unity's built-in messages, and trboubleshoot them from docs when not working.

(Unique Video Reference: 28_RR_CU2)

We would love to know…

  • What you found good about this lecture?
  • What we could do better?

Remember that you can reply to this topic, or create a new topic. The easiest way to create a new topic is to follow the link in Resources. That way the topic will…

  • Be in the correct forum (for the course).
  • Be in the right sub-forum (for the section)
  • Have the correct lecture tag.

Enjoy your stay in our thriving community!

Well that one had me scratching my head, until I finally gave up and watched the rest of the video. I think there are two morals to be had here:

  1. RTM - Read the manual (I will omit the rather more robust part of the acronym out of politeness).

  2. Computers Don’t Work By Magic (it just seems as though they do sometimes) - a phrase that I had to frequently remind myself of, when trying to track down bugs in my previous occupation.

Here’s my OnMouseOver()
i have change color when mouse hovers over a cube

1 Like

Just a note, it seems like you can add a kinematic rigidbody component to the parent object and it will then pick up all the colliders attached to its children, including for the OnMouseOver event.

Privacy & Terms