Question by
mackism · May 21, 2018 at 09:27 AM ·
gameobjectmouseover
GameObject OnMouseOver/Exit/Enter called each frame while on hover,
I wrote a simple script which just prints messages of hover state. The thing is each of those three methods is called each frame when mouse is over.,
Comment
Answer by TUTOCF · May 21, 2018 at 01:15 PM
Hello mackism, You have probably written it in the Update function. In order to get the message only once, you need to move your script elsewhere. Please, show us your script.
Your answer

Follow this Question
Related Questions
Pause my game with a game object! 0 Answers
Soccer game, more realistic net 1 Answer
How can i choose object with mouse ? 0 Answers
OnMouseDown function not working on a gameObject 1 Answer
Problem with destroying a gameobject 2 Answers