onMouseOver wont work for all cubes

So all of my cubes are attached to the same prefab but only 3 of them will actualy react to omMouseOver. Any ideas what could be the issue?
ive checked in the q&a section inside the course & searched for a soultion online but failed to find one.

Hi,

Which version of Unity do you use? And which three cubes react to the hovering? Is there anything special about them?

Try to move the mouse slowly over the colliders. Maybe, if the mouse movement is too fast, the raycast misses the collider.

1 Like

Privacy & Terms