Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2020.3
2020.3.21f1
2021.1
2021.2
2022.1
Issue ID
1381212
Regression
No
[iOS] Touch input returns position relative to UIView instead of screen space when tapping inside native UIView
Reproduction steps:
1. Download and open the attached "TouchIncorrectPositionExample.zip (65.7 KB)" project
2. Build and deploy the project to iOS
3. In the device, press below the white square
4. Observe the "x" and "y" coordinates
5. Press the bottom corner of the white square
6. Observe the "x" and "y" coordinates
Expected result: The coordinates are relative to the space screen
Actual result: The coordinates are relative to the white square
Reproducible with: 2019.4.32f1, 2020.3.23f1, 2021.1.28f1, 2021.2.4f1, 2022.1.0a15
Reproduced with: iPhone 12 Pro (iOS 14.2.1), iPhone 6S (iOS 13.3.1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "+" shaped artifacts are rendered on UI Toolkit Buttons when the border radius is over 50%, button's opacity is set to 1 and the border has width
- All references to Sprite Atlas and AssetReferenceAtlasedSprite are removed when migrating Sprite Atlas Mode from V1 to V2
- URP ShadowCaster2D is misplaced and distorted when used with rotated Perspective Camera
- UI mesh is drawn twice when two cameras are used
- The Scene view top menu bar disappears when any Draw Mode other than "Wireframe" is selected in the specific project with a corrupted Material
Resolution Note (2022.1.X):
This is by design, as we pass the touch coords into Unity direct from the UIResponder delegate methods, however you can use UnitySetViewTouchProcessing() in the trampoline to tell Unity to convert these coordinates internally.