• 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

All Questions

  • Unanswered Questions
avatar image

OgiJr commented

Problems with tagging using OnMouseDown()

Dec 26, '15 onmousedown·problem during runtime·tagging

1 Reply

0 Votes

avatar image

Kye923 published

How to make object clickable when user enter collider ?

May 17, '15 object·mouse·ontriggerenter·click·onmousedown

0 Replies

0 Votes

avatar image

Nikkimouse commented

Ways to make OnMouseDown (or a single script) differentiate between different colliders/sprites

Sep 22, '15 c#·scripting problem·onmousedown

1 Reply

0 Votes

avatar image

Vanidash-Studios commented

Tag calling is calling all my objects with the same tag

Apr 4, '16 in Help Room

2 Replies

0 Votes

avatar image

rodude123 published

endless sidescroller porting to android

Feb 16, '14 button·onmousedown·health

0 Replies

0 Votes

avatar image

isteffy answered

How to order clickable gameObjects that overlap? (2D)

Sep 11, '15 in Help Room

1 Reply

0 Votes

avatar image

TheQuantumGamer commented

Clicking and dragging a gameObject

Feb 1, '15 onmousedown·dragging·onmousedrag

1 Reply

0 Votes

avatar image

WishesMachine published

onMouseDown button not properly working

Sep 14, '14 onmousedown

2 Replies

0 Votes

avatar image

Reagix published

NullReferenceException after AddComponent in OnMouseDown

Jul 4, '15 nullreferenceexception·onmousedown·addcomponent

0 Replies

0 Votes

avatar image

revolute answered

OnMouseDown for mobile

May 26, '15 onmousedown

1 Reply

0 Votes

avatar image

chillersanim commented

Use OnMouseOver or Raycasting while also displaying a camera texture.

Oct 4, '16 c#·raycast·mouseposition·onmousedown·onmouseover

0 Replies

0 Votes

avatar image

Tanshaydar answered

OnMouseDown not called on object for brief period after object moves

Jul 16, '14 collision·ui·onmousedown·clicking

1 Reply

0 Votes

avatar image

Odkken published

Using OnMouseDown to send RPC, along with ID of clicking player

May 26, '14 networking·rpc·onmousedown·owner

0 Replies

0 Votes

avatar image

TerrarianAce commented

Making A Debug.Log depending on what GameObject is active

Jul 24, '20 gameobject·setactive·onmousedown·debug.log·getkeydown

1 Reply

0 Votes

avatar image

getyour411 commented

Help with Layermasks

Dec 13, '16 raycast·layers·rts·onmousedown·layermask

1 Reply

0 Votes

avatar image

Lawlhwut edited

Saving Grids in Grid System

Jul 4, '15 raycast·grid·onmousedown·grid based game

1 Reply

1 Votes

avatar image

abers1997 edited

How to move gameObject along a Vector3 with OnMouseDrag()?

Sep 8, '17 in Help Room

0 Replies

0 Votes

avatar image

Firechicken commented

Weird Boolean Problem c#

Jan 5, '17 c#·button·boolean·onmousedown

1 Reply

0 Votes

avatar image

tubaphc asked

How to detect a mouse click on a line in 3d?

Mar 5, '18 object·linerenderer·onmousedown·line·line drawing

0 Replies

0 Votes

avatar image

Digital-Phantom answered

Load scene when right click button is released not working

Mar 17, '15 javascript·onmousedown·application.loadlevel·onmouseup

1 Reply

0 Votes

avatar image

Tomdancer commented

Looking for Gear VR OnMouseDrag() equivalent

Dec 29, '16 in Help Room

1 Reply

0 Votes

avatar image

zohra published

removing chracter

Nov 12, '13 onmousedown

0 Replies

0 Votes

avatar image

Ben-Stoneman answered

OnMouseDown's Range Problems

Sep 11, '14 onmousedown

1 Reply

0 Votes

avatar image

pritam.dash published

How to make a GUI window appear on clicking a game object

Feb 12, '16 ongui·onmousedown

0 Replies

0 Votes

avatar image

unidad2pete answered

Instantiate onMouseDown

Sep 4, '17 in Help Room

1 Reply

0 Votes

avatar image

mohammad1369 edited

why onCollisionEnter2D doesn't work when i use OnMouseDown or Up?

Mar 23, '21 collision·oncollisionenter·onmousedown

1 Reply

0 Votes

avatar image

gogan1337 published

Change camera from FlyByCam to MainCamera

Aug 26, '14 camera·switch·onmousedown·maincamera

2 Replies

0 Votes

avatar image

psajtik edited

Click on cube to Debug.Log

Aug 2, '15 unity 5·onmousedown·debug.log·leftmouseclick

1 Reply

0 Votes

avatar image

Pnvanol edited

Mobile OnMouseDown

Sep 30, '16 in Help Room

0 Replies

0 Votes

avatar image

ComradeVanti answered

Does OnMouseDown() work for one object only at a given scene?

Mar 19, '16 in Help Room

1 Reply

0 Votes

  • »
  • ‹
  • 8
  • 9
  • 10
  • 11
  • 12
  • ›
  • »

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 click button mouse gui 2d mouseclick javascript onmousedrag scripting problem touch object camera ui onmouseover guitexture instantiate input mobile android 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