Forum rules - please read before posting.

Menu returns IsEnabled method as false regardless of it's current state.

edited September 2024 in Technical Q&A

Hey there, I'm trying to get the current state of one of my AC menus in a custom script, but it doesn't seem to be working properly.

AC.Menu inGameMenu = AC.KickStarter.menuManager.GetMenuWithName("InGame");
Debug.Log(inGameMenu.IsEnabled());

For example, the code snippet above will always print 'False' in the console, regardless of whether the menu is on or off.
I've also tried several variations of this, with methods such as IsOn() and IsVisible(). I've also tested whether or not it's accessing a menu at all, and it seems it is (like if I try to reference a non-existing menu it throws an error. That's not happening here.)
I'm a bit at my wits end here, so any help is greatly appreciated.

Comments

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.