About 200,000 results
Open links in new tab
  1. unity - Lots of objects with OnMouseDown VS Raycasting: Is one better ...

    Jan 24, 2023 · 1 Behind OnMouseDown, Unity is transforming your mouse position from window coordinates to view coordinates, projecting into the world using the view-projection transform and …

  2. unity - How can OnMouseDown in the parent object be triggered from …

    Jul 13, 2019 · OnMouseDown is called when the user has pressed the mouse button while over the GUIElement or Collider. Under the hood, having an OnMouseDown function tells Unity to fire a ray …

  3. r/unity on Reddit: Why isnt this onMouseDown working? i did have it ...

    Jan 22, 2024 · Unity is the ultimate entertainment development platform. Use Unity to build high-quality 3D and 2D games and experiences. Deploy them across mobile, desktop, VR/AR, consoles or the …

  4. OnMouseDown not working anymore with new Input System : …

    Oct 2, 2020 · A subreddit for News, Help, Resources, and Conversation regarding Unity, The Game Engine.

  5. OnMouseDown working as touching screen on smartphone : r/Unity3D …

    Nov 20, 2019 · I have a question, does onMouseDown work as where you touch the screen? I did not make anything in Unity, but I wanted to see how it was looking on smartphone, so I created a build …

  6. Does anyone know why this is happening? Unity OnMouseDown

    Sep 17, 2022 · Does anyone know why this is happening? Unity OnMouseDown () does not detect the whole object. There is nothing between the camera and the object, the box collider seems correct.

  7. unity - OnMouse Events stop working when multiple cameras are …

    Oct 1, 2020 · I'm working on 2019.4.9f1 on a 2D project using Universal Rendering Pipeline. The camera settings changed so I'm stating it. I wrote a OnMouseEnter and OnMouseExit in a script to …

  8. unity - Mobile OnMouseDown - Game Development Stack Exchange

    Sep 30, 2016 · So I started with OnMouseDown on the gameobjects that I was clicking. Then I had to add a rigidbody2d so this would work. Recently though, the game crashes only when playing that …

  9. Detecting mouse click for the uppermost layered 2d sprite in Unity

    Oct 20, 2016 · OnMouseDown () should normally work, make sure that both the sprites have separate scripts attached to them, with OnMouseDown () defined in each script. A collider should be attached …

  10. UI Elements not blocking raycast? : r/Unity3D - Reddit

    Mar 23, 2022 · When I click the button, the button is being correctly triggered but ALSO a gameobject in the scene behind the button is being triggered with an OnMouseDown callback in one of its scripts. Is …