Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question EventSystem UI input blocked by PlayerInput when using the same InputActionAsset

Discussion in 'Input System' started by AbsoluteTundra, Jan 18, 2024.

  1. AbsoluteTundra

    AbsoluteTundra

    Joined:
    Sep 25, 2013
    Posts:
    9
    Hello Everyone,

    I'm currently encountering an issue related to EventSystem & PlayerInput and could use some assistance.

    I'm using the First Person Template and added a canvas and a button. I modified the InputSystemUIInputModule to utilize the StarterAssets.inputactions asset when starting the game. However, upon clicking the UI button, I don't get any hover feedback, and the click doesn't register. I suspect that the PlayerInput is blocking the input actions from firing in the EventSystem because disabling the PlayerInput component allows me to click on the button.

    Interestingly, in one of the samples (UI vs. Game Input), this issue doesn't seem to exist. I delved into the sample scene and code but couldn't pinpoint what makes it work.

    If anyone has insights on how to fix this, I would greatly appreciate it.