Forum rules - please read before posting.

Interaction Menu

Hi,

I'm new to AC so apologies if my questions are a bit basic.

I am having issues with the interaction menu, in particular the following:

How can I get the interaction menu to appear when the player clicks on a hotspot, and the buttons to be selected on drag & release?

How can I get a text object in the interaction UI prefab to display the item name on the interaction menu? (I'm using Unity UI)

I created three interactions on the hotspot but when I interact with the 'look at' button, it displays use interaction dialogue, and the 'talk to' button doesn't show up at runtime at all.

Thanks!

Comments

  • Welcome to the community, @Gregocreate.

    How can I get the interaction menu to appear when the player clicks on a hotspot, and the buttons to be selected on drag & release?

    As in, involve one "click" from the Player? Click/tap down to bring it up, and release to run the interaction?

    Does your game involve the mouse, or a touch-screen?

    The following settings should allow for this, within the Settings Manager's "Interface" panel:

    Interaction method set to Choose Hotspot Then Interaction
    See Interactions with set to Click On Hotspot
    Trigger interactions by releasing click? checked

    How can I get a text object in the interaction UI prefab to display the item name on the interaction menu? (I'm using Unity UI)

    A Label element (mapped to a Text object in your UI prefab), whose Label type is set to Hotspot can display the name of the selected Hotspot/Inventory item.

    I created three interactions on the hotspot but when I interact with the 'look at' button, it displays use interaction dialogue, and the 'talk to' button doesn't show up at runtime at all.

    Are you relying on the default icons / Interaction menu? I can't recreate this behaviour using AC's default interface.

    What I'd check for first, however, is that the Interaction elements within your Interaction menu are each mapped to the correct corresponding Button object in your UI Canvas. If you can share screenshots of these, the Menu Manager, and the Hotspot, I can take a look to try to spot what might be wrong.

  • Hey, thanks for your fast response! I've solved majority of the problems, but following the steps you mentioned for the release interaction got me half way there: Now I can bring up the menu on click, but the interaction is selected the moment I hover over (while still clicking) any of the buttons, rather than release of the mouse click. I seem to be unable to insert images of the menu screenshots so here's the link for the menu settings
    plus a recording of the interaction menu

    Btw I'm working on Unity v. 2022.3.20f1 on a Mac, with the latest version of AC.

  • Thanks for the media - I'm afraid the site doesn't support hosting, so linking via imgur etc is the way to go.

    I can't reproduce the issue with the default interface, so it may be related to your own (very snazzy!) Interaction menu.

    Does it occur if you temporarily switch your game's Menu Manager asset over to Default_MenuManager? Try both the Adventure Creator and Unity Ui Prefab options for the Interaction menu's Source property.

    With your own Menu, check the Responds to fields for your Interaction elements. Are they set to Pointer Enter?

  • Sorry for my late response! I had a look, and on Adventure Creator source and Default_MenuManager, it switches to another menu (I built my menu on the existing InteractionUI prefab, but there are multiple prefabs with the same name in the Demo folders, so it's reverting back to one of them I think)
    As for "Responds to" field, where exactly would I find them? I went through every component in every game object in my menu and can't find it?

  • I had a look, and on Adventure Creator source and Default_MenuManager, it switches to another menu (I built my menu on the existing InteractionUI prefab, but there are multiple prefabs with the same name in the Demo folders, so it's reverting back to one of them I think)

    The "true" default Menu Manager can be found in /Assets/AdventureCreator/Default, with their associated UI prefabs in /Assets/AdventureCreator/UI. What are the behaviours when using this asset, and both AC and Unity UI as its source?

    As for "Responds to" field, where exactly would I find them? I went through every component in every game object in my menu and can't find it

    This should appear within the properties of your Interaction elements, within the Interaction menu, when the Source is set to Unity UI.

    If it's not displaying - what AC version are you using?

  • Thanks Chris, I set the Responds to - Pointer enter, and that partially solved my problem. All 3 buttons work properly every time now as the cursor enters their field, but they still don't get selected on release. When I use the AC default menu, it's working as expected, buttons getting selected on release. I tried changing this prefab to my bespoke menu as well, but this didn't work either. So I can only assume my bespoke menu is creating a problem.

  • I set the Responds to - Pointer enter, and that partially solved my problem. All 3 buttons work properly every time now as the cursor enters their field

    Pointer Enter would cause them to run when hovering the mouse over them - I wasn't getting at using that option, but rather not using it. What was it set to before?

    When I use the AC default menu

    Is this to say, the default InteractionUI prefab - or the Interaction menu with its Source set to Adventure Creator?

  • I finally got around to testing all combinations and Responds to options. Pointer Click achieves what I was looking for (click - drag - release), although it also allows clicking once to reveal the menu, then click again on a button to select, but this is fine by me. This is with Menu Manager using Unity UI Prefab as source.

    Thanks for all the help!

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.