Forum rules - please read before posting.

Menu Button click occurring on down press AND release issue.

Hi, the following steps will reproduce the issue I'm having:

  1. new project in unity 6000.0.31f1
  2. import adventure creator 1.82.3
  3. using new game wizard create new AC game > 2D > point and click > mouse and keyboard > choose interaction then hotspot> 2 D sample player and scene checked.
  4. In the sample scene, create a new Sound, check Play while game paused? and assign the Sound to the Default Sound in the Scene Settings in the Scene Manager tab.
  5. In the Menu Manager, select the Pause menu, change its source to Unity UI Prefab.
  6. Select the Resume button. Change its Click Type to Run Action List.
  7. Add a new Action List: Comment.
  8. Add a click sound to the Resume Button.
  9. Import the AC_InputSystemIntegration unity package
  10. Using the new game wizard modify the existing game and add the Input System integration.
  11. Run the game, open the pause menu, click the resume button (this will behave as expected). However, click again and notice that the click sound plays and comment appear in console twice, once when you click and once when you release.

I'd really appreciate any advice on how to resolve this. many thanks in advance.

Comments

  • Recreated, thanks for the clear steps.

    I'll need to look into this further for a more robust fix, but you should be able to resolve this by selecting the EventSystem_InputSystem prefab within your game's Input System folder (installed by the template), find the Input System UI Input Module component, and clear the Submit field (defaults to "Player/InteractionA").

  • thanks! clearing the Submit field worked.

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.