Search Issue Tracker
Duplicate
Votes
0
Found in
5.4.0f3
Issue ID
844988
Regression
No
OnPointerDown doesn't return the pressed UI elements
OnPointerDown() does not return the UI element that is clicked on; data.pointerPress gameObject is null.
Steps to reproduce:
1) Open the attached project.
2) Open 'TestScene'.
3) Press Play.
4) Press UI 'Button'.
NullReferenceException gets logged in the console when the button is pressed. However, when it is released, OnPointerUp() successfully returns the object.
Reproduced on:
5.5.0b9, 5.4.2p1, 5.3.6p8, 5.2.4f1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Add comment