Search Unity

Bug Error when disabling/enabling OnScreen Objects

Discussion in 'Input System' started by Boji, Feb 18, 2021.

  1. Boji

    Boji

    Joined:
    Jul 10, 2012
    Posts:
    44
    Hi, I am using OnScreen controls in my project and I am trying to disable them in Update() when some time has passed since the user touched the screen and enable them when the user touches the screen.

    I always get this error when I enable/disable a OnScreen object:

    Foo
    UnityEngine.EventSystems.EventSystem:Update () (at C:/Program Files/Unity/Hub/Editor/2020.2.3f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/EventSystem.cs:385)

    Pointer should have exited all objects before being removed
    UnityEngine.EventSystems.EventSystem:Update () (at C:/Program Files/Unity/Hub/Editor/2020.2.3f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/EventSystem.cs:385)

    I don't get this error if I manually enable/disable the object in the editor during runtime.
     
    organick likes this.