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.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Nevermind, figured it out