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
using UnityEngine;
public class UISchemeChanger : MonoBehaviour
{
private void OnEnable()
{
(GameCanvasInstance.Instance as GameCanvas).SetCurrent(gameObject);
}
private void OnDisable()
{
(GameCanvasInstance.Instance as GameCanvas).SetCurrent(null);
}
}
Attachments
Снимок экрана 2025-02-12 204722.png (119.97 KiB) Viewed 893 times