- Home /
flip sprite on mouse over
Hey Firends! i,m working on a game and i want to flip my object horizontly if mouse position is less then player position. a Have done it onClick. But I want to flip it on mouse hover.
on mouse hover over what? I don't think you can do this except in update
Answer by Ian-Gungee · Jan 21, 2018 at 02:13 PM
If your GameObject you want to flip has a collider, you can use OnMouseEnter() and OnMouseExit() to call functions/assign variables/etc. based on whether the mouse is over that objects collider or not
Answer by husnain_rao · Jan 21, 2018 at 02:16 PM
i can use that but i want to flip object where where my mouse moves
Sorry I didn't see this... Do you have images to share? I'm having a hard time visualizing what you want from your description
Your answer
Follow this Question
Related Questions
OnMouseOver Tower Gui Health Bar 2 Answers
Illuminating a 3D object's edges OnMouseOver (script in c#)? 1 Answer
Player health script doesnt work? 2 Answers
How do I build HDRP on a web platform? 0 Answers