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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Input System UI Input Module not receiving controller input

Discussion in 'Input System' started by Meorge, Dec 15, 2019.

  1. Meorge

    Meorge

    Joined:
    Feb 10, 2017
    Posts:
    21
    Hi all,

    I'm having a strange issue with the new Input System and am hoping someone may be able to help.
    I have a Player Input component on my player object, as well as an Input System UI Input Module component on the Canvas used for my game's pause screen.
    When I pause, I can navigate the pause menu using the keyboard and mouse, but for some reason controller input (PS4 DualShock) doesn't register at all. In normal gameplay, both the PS4 DualShock and keyboard/mouse work fine.
    Strangely, this only happens with this pause screen. My main menu UI is able to use both the PS4 DualShock and keyboard/mouse to navigate menus.

    Input module on pause menu (where controller doesn't work):
    Screen Shot 2019-12-15 at 9.58.45 AM.png

    Player Input component on character GameObject: Screen Shot 2019-12-15 at 10.03.33 AM.png



    Input module on main menu UI (where controller does work):
    Screen Shot 2019-12-15 at 10.04.11 AM.png


    Please let me know if there's any other information or screenshots you need.
     
  2. MonasGames

    MonasGames

    Joined:
    Dec 18, 2019
    Posts:
    1
    I added an Input System UI Input Module component and an Event System component to the player and set UI element to First Selected of the Event System, then it worked. I hope it helps.
     
  3. DSivtsov

    DSivtsov

    Joined:
    Feb 20, 2019
    Posts:
    148