Forum rules - please read before posting.

Unity UI Interaction menu turns off early

edited June 2021 in Technical Q&A

Hello AC community,

Firstly, using AC 1.73.8, and Unity 2021.1.7f1.

Haven't come across anything regarding this yet, and wondering if anyone has experienced it. If so, is there any advice on solving it?

Essentially, I have a Unity UI "Interaction menu" designed in a "ring" format. The menu's Appear Type is "On Interaction". Also the game's Interaction Method is: "Choose Hotspot then Interaction".

Here's a screenshot of the menu with all its interaction buttons:
https://imgur.com/a/Nyht5f3

When clicking a hotspot, the menu opens fine and the buttons' interactions work fine.
If moving the cursor off of hotspot before clicking an "interaction button", it turns off / closes the interaction menu -- which is essentially the desired behavior.

Though if a hotspot is clicked on the very edge (left or right) of a hotspot to open the menu,
and a user is trying to reach one of buttons on the left and right sides -- and the cursor is moved any more to the right (in the image example), the Interaction menu closes and the button (magnifying glass in the image example) can't be reached since the menu containing it has closed already:
https://imgur.com/a/2CtIQXd

This image shows the hotspot:
https://imgur.com/a/BKZ4G0w

A video showing the cursor movement:
https://youtu.be/qVCuqvLJYYQ

Understandably, this happens because the cursor has reached the edge of the hotspot and it closes the menu. Though wondering if there's any advice to keep the interaction menu on if the cursor is still hovering on the menu at any point -- and not have the hotspot close it when it is.

An initial idea I thought of to solve it was: if the order in a layer for hotspots was lower than that of the Unity UI menu.
Though, this likely wouldn't be possible -- as my understanding is that the order of hotspots is determined by their distance from the camera (the z-order).
And the Unity UI menus order is set by the "Sort Order" on the canvas component in the prefab.

Is there any other advice on this?
Any assistance would be greatly appreciated!

Comments

  • edited June 2021

    Check that the Settings Manager's Close interactions with field is set to Cursor Leaves Menu.

    If the issue occurs with this setting, it may be to do with what AC considers to be the boundary of the menu. This is set via the Menu's RectTransform boundary property when using a Unity UI menu - this should be an immediate child of the Canvas root that spans the menu's visible area.

  • Thank you for that!

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.