Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

(Case 1188666) UI stops working if PlayerInput/InputSystemUIModule share inputactions asset

Discussion in 'Input System' started by Peter77, Oct 3, 2019.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,454
    The UI stops working, if the PlayerInput and InputSystemUIModule Components share an inputactions asset. Tested with 2019.3.0b4 and InputSystem-preview-1.0.0.

    A video is attached to bug-report 1188666. The test project can be found attached to this post, as well as in the bug-report.

    Reproduce
    • Open attached project
    • Open Scene.unity
    • Press Play
    • Hover mouse pointer over the two buttons
    • Notice they play their highlight effect
    • Press Stop
    • Select PlayerInput gameobject and enable it
    • Press Play
    • Notice UI does not highlight anymore
    • Press Stop
    • Duplicate MyInputActions.inputactions
    • Assign duplicated inputactions to PlayerInput
    • Press Play
    • Notice UI highlight works again

    Actual
    When the PlayerInput Component and InputSystemUIModule Component share the same inputactions asset, the UI stops working.

    Expected
    I expected the UI to continue to work.
    Sharing inputactions assets should be supported, I guess?
     

    Attached Files:

  2. vecima

    vecima

    Joined:
    Jun 6, 2017
    Posts:
    16
    I have this same error in my project. I just updated my project to using 2019.2.8f1, and using Input System Preview 1.0.0.

    When I try to click on the UI element, in this case a button with the mouse I see this error:

    Should not get here
    UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)
    UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr) (at C:/buildslave/unity/build/Modules/Input/Private/Input.cs:120)
     
    Last edited: Oct 9, 2019
  3. Rene-Damm

    Rene-Damm

    Unity Technologies

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    Thank you for reporting this. We will take a look.