Hey there! this is my first topic on the new Unity Discussions. I’m having a weird but interesting issue with the Input System 1.11.12 and Unity 6.0
The thing is, that I have two input actions that are mutually exclusive on different action maps (binded to the same keys). There’s Previous/Next on the Player that are binded to Q/E keys and CCTV_Previous/CCTV_Next that are also binded to the Q/E keys.
My idea was changing between action maps when I interact and exit the CCTV mechanic and it worked as expected, but when I was doing general regression on the game mechanics, I noticed that all action maps were active at the start. I created a script to disable them and then enable the Player, but no matter how many different ways I tried to disable all action maps at both the Awake and Start method, it doesn’t care. The Input Debugger keeps telling me that the action maps are enabled, even though the PlayerInput says that they’re disabled.
Have you ever seen this? Could this be an Input System bug? or is the PlayerInput component kicking me in the nuts.
My latest attempt was the following:
private void Awake()
{
// Player Input is disabled by default
_playerInput = GetComponent<PlayerInput>();
// Disable all action maps
foreach (var actionMap in _playerInput.actions.actionMaps)
{
actionMap.Disable();
Debug.Log($"Action Map '{actionMap.name}' Disabled: {actionMap.enabled}");
}
// Enable PlayerInput component
_playerInput.enabled = true;
_playerInput.SwitchCurrentActionMap("Player");
}
Thanks a lot for your help and opinions!
