• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges

Onmousedown

Cancel

Cancel

Unanswered Questions

  • All Questions
avatar image

Vincent93 commented

OnMouseDown work only in case of Default layer

Jan 3, '23 in Help Room

0 Replies

0 Votes

avatar image

prathvipatil published

Touch and Swipe at the same time mobile

Feb 28, '22 mobile·touch controls·swipe·onmousedown

0 Replies

0 Votes

avatar image

Assassins_ asked

OnMouseDown how can i get object that clicked

Jan 11, '22 in Help Room

0 Replies

0 Votes

avatar image

sphericalcircle edited

OnMouseDown(), OnMouseOver(), and OnMouseExit() not working in build when certain skybox materials are used

Dec 28, '21 in Help Room

0 Replies

0 Votes

avatar image

mesmes123 asked

OnMouseDrag() stopped working after few clicks

Oct 26, '21 in Help Room

0 Replies

0 Votes

avatar image

dazyra published

how to not trigger two collaiders by one click

Jul 12, '21 collider·onmousedown

0 Replies

0 Votes

avatar image

mouz13 edited

Rotate a spawned object whith onmousedrag and move it with onmousedown

May 18, '21 programming·rotate object·move an object·onmousedown·onmousedrag

0 Replies

0 Votes

avatar image

daisoto edited

OnMouseDown/Drag/ets is not being called in WebGL build

Mar 18, '21 in Help Room

0 Replies

0 Votes

avatar image

EMFX published

How can I make a section of an object react to my mouse being on it or my mouse clicking on it?

Dec 20, '20 gameobject·onmousedown·onmouseover

0 Replies

0 Votes

avatar image

RgClube asked

How to make the selected object destroyed with another selected object

Nov 29, '20 script.·raycasthit2d·onmousedown·selecting objects

0 Replies

0 Votes

avatar image

RotatingCelery asked

OnMouseDown() not registering clicks. ( 3d )

May 19, '20 3d·getcomponent·onmousedown

0 Replies

0 Votes

avatar image

adambanks314 asked

How to make different actions using OnMouseDrag with two different colliders on one Game Object.

Apr 23, '20 collision·collision detection·collider2d·onmousedown·onmousedrag

0 Replies

0 Votes

avatar image

RothX asked

2D - OnMouseDown not working despite having a collider

Mar 16, '20 in Help Room

0 Replies

0 Votes

avatar image

alifianrc published

Why my input both mouse and touch can't detected?

Mar 15, '20 in Help Room

0 Replies

0 Votes

avatar image

emmapy published

OnMouseDown not firing on prefab instantiated in for loop (2D)

Feb 13, '20 2d·instantiate·for-loop·onmousedown

0 Replies

0 Votes

avatar image

heltonluizsb asked

How "select" the enemy even with joystick being used

Jan 31, '20 in Help Room

0 Replies

0 Votes

avatar image

REICHTAG commented

why OnMouseDown is not working

Jan 20, '20 in Help Room

0 Replies

0 Votes

avatar image

lgarczyn edited

OnMouseDown not firing if character isn't touching ground

Nov 14, '19 physics·rigidbody·colliders·navmeshagent·onmousedown

0 Replies

0 Votes

avatar image

lex2763 edited

Drag and Drop lagging behind mouse

Sep 12, '19 drag·mouseposition·onmousedown·drag-and-drop·dragging

0 Replies

0 Votes

avatar image

SmaiStudios commented

OnMouseDown Multiple Objects. OnMouseDown not working.

Aug 14, '19 in Help Room

0 Replies

0 Votes

avatar image

filippob97_unity asked

OnMouseDown and OnMouseUp not working,onMouseDown not working

Aug 4, '19 c#·camera·onmousedown

0 Replies

0 Votes

avatar image

asianfanfics68 answered

iOS multiTouch / release - Strange problem

May 2, '19 ios·touch·onmousedown·multitouch·release

0 Replies

0 Votes

avatar image

DCordoba edited

Change Mesh/Gameobject onmousedown?,Swap mesh/gameobject randomly onmousedown

Jan 27, '19 gameobject·mesh·onmousedown

0 Replies

0 Votes

avatar image

caitlynraye asked

How can I use OnMouseDown and a button click in the same scene?

Nov 28, '18 ui·onmousedown·button trigger events

0 Replies

0 Votes

avatar image

lemon_pumpkins asked

How to make a physical keypad

Nov 20, '18 in Help Room

0 Replies

0 Votes

avatar image

R_HP commented

OnMouseDown not Working becuase of camera distance !!!!

Sep 18, '18 scripting problem·onmousedown

0 Replies

0 Votes

avatar image

Laurence_B edited

Pause button not getting clicked

Jul 18, '18 ui·button·3d·onmousedown·onclick

0 Replies

0 Votes

avatar image

ilkyazar edited

How to make prefab clones selectable?

Jun 29, '18 in Help Room

0 Replies

0 Votes

avatar image

RicardoRios2004 edited

How can I move a player toward a gameobject by clickling an image

Apr 25, '18 c#·movement·gameobject·player·onmousedown

0 Replies

0 Votes

avatar image

lasco asked

replace "OnPress" (button) by "OnMouseDown" (collider)

Apr 19, '18 in Help Room

0 Replies

0 Votes

  • 1
  • 2
  • 3
  • 4
  • ›

Followers

avatar image

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Related Topics

c# gameobject collider raycast onmouseup button click mouse gui 2d mouseclick javascript onmousedrag ui scripting problem touch object camera onmouseover instantiate guitexture mobile android input collider2d


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges