Forum rules - please read before posting.

Can't control Inventory with Direct Navigation after select a item

Hello Chris,

I have a strange behaviour in my game inventory. The inventory is controled with keyboard or gamepad (Direct Navigation) and dont have the Left and Right arrows because it will be limited to 6 itens.

The problem is that when i call the menu and the first item is selected i can navigate and select a item with "IteractionA" button (see the inventory box on the top of the screen added for debug with the name of the selected item) but the FIRST time that i select a item the game lose control of the inventory i can't navigate the itens anymore (vide video in 00:09), after that if i close the menu and call it again i have no problem selecting a item and navigating afterwards.

The same thing happens on the FIRST time that i deselect a item with "IteractionB" (vide video in 00:29).

After the FIRST select and deselect the problem never happens again.
I would apreciate any help. Thanks.

https://drive.google.com/file/d/18fCtzXXijaJ-AIeoaFCKTb3Imduh1Wdr/view?usp=drive_link

https://imgur.com/hqZ6h4L
https://imgur.com/AbJ3V7e

Comments

  • How odd. What are your AC and Unity versions?

    Open up the AC Status box from the bottom of the Settings Manager to reveal what the game's state is, as well as list any ActionLists currently running. What does it display at the time the issue occurs, vs the same moment when it doesn't?

  • Unity 2022.3.62f3
    AC 1.86.1

    Here is a new video with the AC StatusBox, i did remove my ActionLists that where called when the Inventory Menu turn On and Off just to be sure (they where controlling the "CloseUp" character animation and disabling "InWorld" character moviment during the use of the Menu). So no ActionList is running and i turned the PauseGame option for this Menu.

    https://drive.google.com/file/d/1cbjrwYPk4wdHXkyyCqF0CHQ00w_tLRtB/view?usp=drive_link

  • Forgot to mention: in the video i lost controll over the menu in minutes 00:10 and 00:27, when trying to select and deselect a item with "IteractionA" and "IteractionB" respectively.

  • Thanks for the details.

    Would you be able to zip up your project (excluding the Library folder) and PM it to me? I think that's going to be the most reliable way to recreate this issue.

  • Sent it. Thanks.

  • Thanks for the files.

    It looks like this may be down to your Event System having the InteractionA be assigned to both the Left Click and Submit fields - I suspect this is confusing Unity and causing issues when selecting buttons.

    Try separating these to separate actions, with different inputs - if need be, we can disable actions through code, but see if that allows navigation to work first.

  • I have tried to use diferent input keys for IteractionA and Submit and didn't work. I remove any mouse or touch inputs leaving only keyboard and gamepad and still didn't work. But maybe something is wrong because no matter what the UI Submit input is, it will not work. I can only select itens in the menu with IteractionA and not with Submit button.

  • edited May 30

    How are the inputs assigned in your Event System prefab? This determines which of the input actions get used by the UI.

    You can have either InteractionA or Submit assigned in the Event System's Submit field - it just changes what the key is. The important thing is to ensure that the same input isn't also used but the Left Click field.

  • Thankyou for your time Chris. I decided to close the Inventory menu after the selection with a custom script. I think i will not gonna combine itens in the Inventory menu so thats ok for now.

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.