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

Feature Request PlayerInput should broadcast events when currentActionMap value changes

Discussion in 'Input System' started by neviovalsa, Oct 18, 2023.

  1. neviovalsa

    neviovalsa

    Joined:
    Jun 24, 2019
    Posts:
    54
    There's already a TODO to add events for control scheme switches:

    Code (CSharp):
    1. ////TODO: add event for control scheme switches
    It would be nice to also have and event triggered for action map changes.
     
  2. Until then Input System have some of these in code below PlayerInput, so if you want, you can use those until, if ever, Unity does make PlayerInput have those events.

    You can read up on
    InputSystem.onActionChange
    here.
     
  3. neviovalsa

    neviovalsa

    Joined:
    Jun 24, 2019
    Posts:
    54
    Thanks,
    I ended up not needing it for the problem I had, but still very useful for doing stuff like changing UI based on the device being used.