Forum rules - please read before posting.

How does Event System prefab work in Menu Manager?

Hi everyone,
AC 1.70.0 + Unity 2019.2.17f1 on a 2d game.

I'm trying to have a direct menu navigation on Load/Save menu, but I have some little issue (this is referred to this thread (https://adventurecreator.org/forum/discussion/10550/question-about-navigate-menus-directly-with-controller/p1), but I preferred to open a new one to concentrate the problem here):

In load/save menu I have 10 slot.
Here the AC menu: https://drive.google.com/file/d/1aOneWkuk2aODECmLjCd-GOW1TG-4bFKK/view?usp=sharing
The unity UI: https://drive.google.com/file/d/1arBN7Su2PatiokIe-7mtXpyRHXFctd48/view?usp=sharing (as you can see I use Explicit in navigation to manage the connection between buttons)
And here the savelist element of the load menu: https://drive.google.com/file/d/1uWOkEl1fsvNCYa1tKia4qaprHQazCLtX/view?usp=sharing
Now the little issue is about navigation when I haven't all the slots full. In this case it starts from the first slot and, when I press the up button, it correctly goes to Back Button. But when I press Down button, it "loses" the connection as it tries to navigate on empty slots. So I'd like to can navigate "recognizing" the slots so the behaviour is correct.

In this thread Chris suggests to > Unless you supply a custom EventSystem prefab in the Menu Manager, the cursor's influence on menus should be limited to those that aren't directly-controlled automatically.

But I can't understand how it works. Could you give me some suggestions?

Thank you.

Comments

  • An empty slot will be considered "invisible" by AC.

    Your SavesList element's When invisible property is currently set to Disable Object, hence your Explicit connection is being lost.

    You can either set the Button's Navigation field to Automatic (to have it skip past empty slots and move onto "Back", or set the above instead to Clear Content (to be able to navigate empty slots).

    The EventSystem is a Unity concept, and relates to how Unity UI elements are selected and navigated. I don't think this particular issue relates to it specifically, since the default behaviour should manage with this.

  • Thank you Chris.
    I tried with Clear Content but I can see the empty slots and I don't want it. So I tried with Automatic in navigation, but it's not very useful, because with Explicit I can use only Up and Down movement, while Automatic takes all the movement (also left/right) and I can't to lock the and it's not good. So I think I solved selecting Vertical and Explicit together.

    Thank you.

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.