Hey there, I've searched around and found some simliar questions but can't seem to get them working for me.
I'm trying to use the interact ability to trigger a menu but once it's open, I can't click on the UI. Here's what I'm doing.
The menu pops up, the cursor is released, the character/camera stop moving but I can't click anything in the UI or interact with anything in anyway.
Does triggering the OnEnableGameplayInput event disable user input of all kinds?
Thanks!
I'm trying to use the interact ability to trigger a menu but once it's open, I can't click on the UI. Here's what I'm doing.
Code:
public class TerminalInteractable : StateBehavior, IInteractableTarget, IInteractableMessage
{
public void Interact(GameObject character) {
OpenMenu();
EventHandler.ExecuteEvent(character, "OnEnableGameplayInput", false);
Cursor.lockState = CursorLockMode.None;
Cursor.visible = true;
}
}
The menu pops up, the cursor is released, the character/camera stop moving but I can't click anything in the UI or interact with anything in anyway.
Does triggering the OnEnableGameplayInput event disable user input of all kinds?
Thanks!