- Home /
Question by
goo-muffin · Feb 16, 2013 at 10:29 AM ·
dragclickonmousedown
Click but not drag
Hi!
How can I know if the palyer clicked on a gameobject but does not drag it? If it drags it should do something else?
Comment
Answer by OmarAlhaddad · Feb 16, 2013 at 12:04 PM
Take a look at the Script Reference, OnMouseDown and OnMouseDrag.
Make sure your game object has a collider.
Goodluck
Your answer
Follow this Question
Related Questions
Can't click gameobject when over another trigger? 1 Answer
Click and drag a plane 1 Answer
Click Drag not working on iphone 2 Answers
How can I call OnMouseDown() from an outside script? 1 Answer
Click & Materials 1 Answer