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

Resolved how to disable the new input system?

Discussion in 'Input System' started by LeoFeitosa, Mar 7, 2021.

  1. LeoFeitosa

    LeoFeitosa

    Joined:
    Jul 5, 2017
    Posts:
    32
    I would like to disable all player commands as soon as the game is paused, but I still don't knw how to do it
     
  2. You don't want to disable all actionmaps, only the gameplay ones, you want to enable the menu-related ones or other "pause menu" controls, so your application stays controllable.

    To disable an actionmap see:
    https://docs.unity3d.com/Packages/c...nityEngine_InputSystem_InputActionMap_Disable
    to enable one:
    https://docs.unity3d.com/Packages/c...UnityEngine_InputSystem_InputActionMap_Enable
     
    petey and danigfe92 like this.