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
Comments (2)
-
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
- Render Graph Execution errors when using GPU occlusion culling with 'Opaque Objects' frame setting disabled on a Camera
- Animator window: “Delete” menu item not greyed out for Base Layer context menu
- Resetting “PC_RP Asset (Universal Render Pipeline Asset)” causes Game view to become black and throws Renderer and NullReference errors in the Console window
- [Mobile] Player Crash on scripting_invoke_profiler_begin when the built Player Scene has an empty UIDocument and is built on IL2CPP
- Unnecessary Warnings are logged when running Player with -batchmode -nographics
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.