Search Issue Tracker

Fixed in 2020.1

Fixed in 2019.2, 2019.3

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

uGUI

-

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

  1. Response avatar

    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.

Comments (2)

  1. 3bc7aa730717b8e6fb08cf7e3f4b9048?d=mm

    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

  2. C848cdf497f7aa2a6ac89edeba6ed8b8?d=mm

    AlonMixed

    Dec 16, 2019 16:05

    It is not fixed in 2019.3.0f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.