Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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.