Search Issue Tracker
Fixed in 2020.1.X
Fixed in 2019.2.X, 2019.3.X
Votes
1
Found in
2017.4.0f1
2017.4.23f1
2018.3.0a1
2018.4.0f1
2019.1.0a1
2019.2.0a1
2019.3.0a1
Issue ID
1174009
Regression
No
EventSystem.current.IsPointerOverGameObject(touch.fingerId) always returns false in Player
To reproduce:
1. Download attached "NewRepro.zip" project and open in Unity
2. Open "HelloAR" scene
3. In Hierarchy go to PlaneDiscovery > Canvas > Text and change Text Component Color to Dark Color
4. Build for iOS
5. Deploy the Xcode project to the iOS device
6. When App is deployed press anywhere on the Screen
7. Observe that in the Upper Screen there will be printed "Not pointing UI" message
Notes:
- This issue happens on both Standalone, iOS, Android (Mono and IL2CPP)
- This issue also happens even tapping on the UI GameObject
- This issue only occurs when you build from a clear Project which means no Library folder
- The Customer followed the usage in https://docs.unity3d.com/ScriptReference/EventSystems.EventSystem.IsPointerOverGameObject.html
Tested with:
- iPhone 6s Plus, iOS: 11.4.1 - Reproduced
- iPhone 8, iOS: 11.0 - Reproduced
- iPhone 8 Plus, iOS: 12.0 - Reproduced
- VLNQA00125, Google Pixel 2 (Pixel 2), Android 8.1.0, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540 - Reproduced
Reproduced on Unity 2017.4.0f1, 2017.4.31f1, 2018.3.14f1, 2018.4.6f1, 2019.1.14f1, 2019.2.1f1 and 2019.3.0a11
-
amitsri20
Mar 25, 2020 10:18
Hi
I don't see it fixed in 2019.3.6f1, IsPointerOverGameObject() with touch finger id always returns False as there is no UI touched.
Tested on iPhone 7.
Please suggest
-
AlonMixed
Dec 16, 2019 16:05
It is not fixed in 2019.3.0f1
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
- On Script import/reimport MonoImporter does not generate consistent results due to updating Custom packages
- [Entities Graphics] Size of the Content Update generated folder increases when changes are made to the Scene
- In Play Mode, an extra Sync Call is made every frame when a GameObject has a Rigidbody 2D component
- Crash on block_remove when a scene is opened in a specific project
- The GameObject with a Hinge Joint Component does not return to the initial position when the Use Motor property is toggled off
Resolution Note (fix version 2020.1):
The EventSystem Update() function should be called first before the Update function() on any of the User scripts.
When a Library folder is deleted this order is lost, and the user script gets the Update() call prior to the EventSystem and as a consequence the current bug comes up
Hence it is not recommended to delete the library folder.