Hey,
I am using the “new” input system. When a player joins (by pressing a controller button) I want to disable their inputs for a second to prevent unwanted actions (e.g. clicking the first selected UI-button).
In other words, I want to instantiate the PlayerInput with disabled actions per default, to switch them on later.
I tried using
private void Awake()
{
PlayerInput.actions.Disable();
}
but this does not work. The action map does not get disabled at all. Adding this to Start does work, but then the first Input always gets through.