Forum rules - please read before posting.

Linked Canvas cannot be found by Menu Manager after Menu Rebuild

Hi, I'm getting this issue where the menu for my dialogue menu stops working after reloading the game from a built version of the game (problem exists on all platforms I've tested, windows and android).
This is the error message I get when the menu fails to open, "The Menu 'Subtitles' has its Source set to UnityUiPrefab, but no Linked Canvas can be found!".

The problem seems to occur when rebuilding the playermenus from the end game action.

Unchecking the "Reset Menus too?" option in the end game action fixes this issue, but causes my other menus to break.

"Duplicate for each line?" is turned on and is being used to display multiple dialogue bubbles at a time (disabling this does fix the dialogue menu but stops the multiple dialogue bubbles from working)

Please let me know if you need any other details.

AC version v1.66.8
Unity 2017.4.20f2

Comments

  • hqlhql
    edited October 2020

    I've manage to solve the issue by adding this check before deleting the canvas's gameobject in PlayerMenus.RebuildMenus method

    if (menu.title == "Subtitles" && menu.GetsDuplicated() && !menu.IsDuplicate())
    {
    continue;
    }

    IsDuplicated() is a custom function that returns isDuplicated from menu

    Please let me know if there's a better solution.

  • This ought to be fixed in the current release. If you are able, I would recommend upgrading - otherwise the code change you've added would likely be the best workaround.

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.