Forum rules - please read before posting.

Recommended EventSystem setup with the new InputSystem

Hey folks,
We're using the new InputSystem with the Adventure Creator InputSystem package.

I couldn't find anything regarding the EventSystem, so I'd like to ask this here. What is the recommended EventSystem setup?

We are using a simulated cursor in-game, and we are in the progress of converting all game menus to direct navigation. Right now our setup looks like this:

I am most curious about the LeftClick/RightClick and the Submit/Cancel events since they seem to mirror eachother a bit. The assigned button for LeftClick is practically the same as the Submit event.

So far this seems to only be an issue for the Language button (which currently uses the simulated cursor), you can cycle through the languages by pressing this button. The problem is, is that when you use a gamepad it skips a language, it cycles twice per button press.
Is this expected behavior because it's not a direct menu yet, or is there a better way to setup the EventSystem?

Comments

  • edited October 2024

    The menu should behave as expected whether its navigated directly, or with a cursor (simulated or otherwise).

    So far this seems to only be an issue for the Language button

    Is this to say that only this button has an issue, i.e. you have other UI Buttons that do not have this problem?

    If you switch the Button's click behaviour to run an ActionList, use the ActionList: Comment Action to print some debug text in the Console. Does it appear twice when clicked once, and what are the stacktraces in full if so?

    Do the logs show simultaneously, or is it a case of e.g. one showing on the "press down", and another on the "release"?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.