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’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. 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. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,704
    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.