Re: Switching action map disables interaction
Posted: Fri Feb 07, 2025 4:13 pm
I found out exactly what stops working if you use PlayerInputWrapper.PlayerInput.SwitchCurrentActionMap("UI");
Unfortunately, I was not given permission to send the project files.
DialogueUI stops working if this code is triggered. Regardless of whether the dialogues were turned on before or not.
And when using Custom InputActionAsset in EventSystem
Unfortunately, I was not given permission to send the project files.
DialogueUI stops working if this code is triggered. Regardless of whether the dialogues were turned on before or not.
And when using Custom InputActionAsset in EventSystem
Code: Select all
private IEnumerator SwitchInputAction(GameObject gameObject)
{
yield return new WaitForSecondsRealtime(0.1f);
if (gameObject)
{
PlayerInputWrapper.PlayerInput.SwitchCurrentActionMap("UI");
}
else
{
PlayerInputWrapper.PlayerInput.SwitchCurrentActionMap("Player");
}
PlayerInputWrapper.PlayerInput.ActivateInput();
}