> For the complete documentation index, see [llms.txt](https://roxioxx.gitbook.io/unity-cookbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://roxioxx.gitbook.io/unity-cookbook/ui-onlyfans/new-input-system-open-menu.md).

# New Input System - Open Menu

How to use Input with on screen buttons.

{% embed url="<https://www.youtube.com/watch?v=SXBgBmUcTe0>" %}

{% embed url="<https://www.youtube.com/watch?v=e30i55Hp-to>" %}

## Disabling Movement for UI

To switch to UI, you can change the Action Map. You need to set the default action map in the previous section first before switching.

```csharp
using UnityEngine.InputSystem;

...

[SerializeField] private PlayerInput playerInput;

public void OnOpenMenu(InputAction.CallbackContext ctx)
    {
        Debug.Log("UI Should Open");
        playerInput.SwitchCurrentActionMap("UI");
    }

```

Alternately, You can switch the Action Map in the Inspector of the PlayerInputComponent.

<figure><img src="/files/WgNjjm3wCO0VkLBt65SL" alt=""><figcaption></figcaption></figure>
