- Home /
OnMouseEnter() over environment GameObject during the game
Hello and thanks in advance,
My question:
I am trying to do a kids game. My target is this: when I point with the mouse the tools I find (pencil, buckect, etc...) around the environment, they should blink (the image should roll over, or whatever) or maybe the mouse pointer would change its shape. In other words I should know I can do something with them. (The game must be 3D)
The problem: I am totally new and I need to know where should I find, in the reference manual I didn't find anything. I know how to make a menu and all this within the menu, but not during the game.
Thank you very much.
Answer by efge · Mar 03, 2011 at 06:19 PM
Attach a script to each of the tools and use OnMouseOver. Tke a look to the reference for this function there is an example for changing the color.
Your answer
Follow this Question
Related Questions
pause game 2 Answers
Locking movement to one axis only (3D game) 1 Answer
AC-130 Game help 1 Answer
Difference between OnPointerEnter and OnMouseEnter 3 Answers
Unity UI/Events - how to do something for as long as UI button is pressed 2 Answers