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

Which controller caused UI Submit?

Discussion in 'Input System' started by pryankster, Mar 9, 2021.

  1. pryankster


    Aug 6, 2015
    I'm using the new input system, and I have a "Start" UI Button to start my game. I want to know which controller/control scheme activated the start button so that I can assign that controller to player1. Is there any way to get that information? The button is wired up to an OnClick() handler in the inspector, but there doesn't seem to be a way to get the BaseEventData passed to my handler (would that even have what I'm looking for?)

    -- pryankster