Unity Issue Tracker - OnMouseDown sometimes doesn't get called when clicking on the GameObject's Circle Collider 2D
Closed
UUM-9533
OnMouseDown sometimes doesn't get called when clicking on the GameObject's Circle Collider 2D
Unity: uGUI
Won't Fix
2023.3.X
2023.2.X
2023.1.X
2022.2.X
2022.1.X
2021.3.X
2020.3.X
2022.1 has reached end of life so the issue will be fixed in a newer version.
Reproduction steps:
1. Open the attached project
2. Open the "/Assets/Scenes/SampleScene.unity" Scene
3. Enter Play Mode
4. Click on the white square in the upper right corner of the Game View
5. Place the GameObject on the map
6. Repeat steps 3-4 a few more times
7. Click on each instantiated GameObject
8. Observe their behavior
Expected result: After clicking each GameObject, a black circle appears around it
Actual result: Sometimes the black circle doesn't appear on specific GameObjects
if the black circle doesn't appear after clicking on the GameObject, disabling/enabling the Circle Collider 2D Component on that GameObject's Child GameObject "SelectionBody" seems to fix the issue
Prioritise and Follow this issue
Have a workaround or additional info about this issue?