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. Dismiss Notice

UI Click Events Not Working with StarterAssets InputActions

Discussion in 'Input System' started by jsissler, Dec 31, 2021.

  1. jsissler

    jsissler

    Joined:
    Apr 25, 2019
    Posts:
    9
    I'm building out a prototype seeded by the StarterAssets FPCC package and found when I introduce a Canvas with buttons and an EventSystem that mouse clicks are not firing the button OnClick bindings.

    I added the UI action map from DefaultInputActions to StarterAssets input actions and I think my configuration is OK. When I replace StarterAssets input actions with DefaultInputActions on my PlayerInput and EventSystem the UI works but the PlayerCapsule movement is not tuned correctly but basically works.

    Trying to figure out how to get a version of input actions that work for both the PlayerCapsule functionality as well as UI.

    Anyone with experience/solutions for using StarterAssets with UI?
     
  2. jsissler

    jsissler

    Joined:
    Apr 25, 2019
    Posts:
    9
    SOLVED: When copying UI action map into StarterAssets, the control scheme group needs to be changed from "Keyboard&Mouse" to "KeyboardMouse".