Discussions
Sign In
Forum rules
- please read before posting.
Close all menus (or all open menus)
JackMariani
April 2015
in
Technical Q&A
Hi, I've a quick question.
Is there a command, or an action, or anything to close all the open menus?
The idea is to have a "QuitToMainMenu" method to close everything and then open just the the main menu.
Thank you very much.
Comments
ChrisIceBox
April 2015
No - you'll almost always want to be selective about which menus are affected, but through script you can do this.
foreach (AC.Menu menu in AC.PlayerMenus.GetMenus ())
{
menu.TurnOff (true);
}
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!
Sign In
Register
Quick Links
Categories
Recent Discussions
Categories
12.5K
All Categories
66
Official news
1.5K
Engine development
10.5K
Technical Q&A
337
Games showcase
150
Extending the editor
229
Adventure talk
Welcome to the official forum for Adventure Creator.
Forum rules
Main website
Store page
Community wiki
Community Discord
Powered by Vanilla
Comments
foreach (AC.Menu menu in AC.PlayerMenus.GetMenus ())
{
menu.TurnOff (true);
}