Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

how to switch the "Actions Asset" in the Input System UI Input Module at runtime

Discussion in 'Input System' started by strongbox3d, Jul 16, 2020.

  1. strongbox3d

    strongbox3d

    Joined:
    May 8, 2012
    Posts:
    816
    Hello guys,

    I am trying to switch the "Actions Asset" in the Input System UI Input Module (script) at runtime so the user can choose to control the game with a gamepad or a keyboard and mouse from an options screen. But when I switch the "Actions Asset" the UI stops responding to either input Actions Asset.

    I am trying to use the "VirtualMouseInput" from Unity's samples project, so when using the gamepad, the user can control a virtual mouse cursor with the gamepad.

    Could anyone help?

    Regards,
    Carlos
     
unityunity