Forum rules - please read before posting.

Problem when updating to 1.82

edited March 1 in Technical Q&A

Hi Chris. I have a problem when updating from 1.81 to 1.82

Please have a look at these 2 videos before and after updating
https://drive.google.com/drive/folders/16xHe2aXtEynYG1BPeYkva8UkWtmw7ZBS?usp=sharing

In the 1.81 video. I have a Unity UI. When clicking on the wheel button, the character dialog will appear. When opening the AC UI Inventory, a script will uncheck the Interactable in the Canvas Group of the Unity UI. Then I can select an item from the Inventory.

In the 1.82 video. The same UI setup. But after updating when I select the item from the Inventory, it selects the wheel button and runs the dialog instead. If I go to the wheel button and uncheck the Interactable in Button component, then I can select the item.

You'll see some different setup in 2 videos. It's because after the problem, I tried moving components around.

Here is the script to uncheck the Interactable in Canvas group:

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using AC;

    public class ToggleMenuInteractivity : MonoBehaviour
    {

        public CanvasGroup canvasGroup;
        public string menuName;

        private void OnEnable()
        {
            EventManager.OnMenuTurnOn += OnMenuTurnOn;
            EventManager.OnMenuTurnOff += OnMenuTurnOff;
        }

        private void OnDisable()
        {
            EventManager.OnMenuTurnOn -= OnMenuTurnOn;
            EventManager.OnMenuTurnOff -= OnMenuTurnOff;
        }

        private void OnMenuTurnOn(AC.Menu menu, bool isInstant)
        {
            if (menu.title == menuName)
            {
                canvasGroup.interactable = false;
            }
        }

        private void OnMenuTurnOff(AC.Menu menu, bool isInstant)
        {
            if (menu.title == menuName)
            {
                canvasGroup.interactable = true;
            }
        }
    }

Comments

  • Do you know the exact version numbers?

    When turning on the Inventory menu, try running a Menu: Select action to explicitly select the first slot in the Inventory element.

  • edited March 2

    I updated from 1.81.7 to 1.82.5

    I tried Menu: Select, nothing changed. I also tried to check/uncheck the Inventory settings. Btw, I'm using keyboard, not mouse.

    I've uploaded some screenshots of the UI setup. There's a script on the Wheel button to show the selected item. Nothing changed when I removed it.
    https://drive.google.com/drive/folders/16xHe2aXtEynYG1BPeYkva8UkWtmw7ZBS?usp=sharing

    Thanks, Chris!

  • I would need to examine this carefully on my end.

    Can you PM me a project from v1.81.7 - with instructions on how to recreate the issue - that also causes the issue to occur once v1.82.5 is imported?

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.