Currently, I m developing a plugin using Canvas, and I want to disable it when the current screen is [Top Menu].
How can I create a script that checks if the current screen is the [Top Menu]?
Thanks you, all.
How can I create a script that checks if the current screen is the [Top Menu]?
C#:
public class DetectTopMenu : MVRScript
{
void OnGUI()
{
if (SuperController.singleton.activeUI == SuperController.ActiveUI.MainMenu)
{// This is a good working [MainMenu] check example.
SuperController.LogMessage("[INF] I'm here [MainMenu] ... ");
}
/* is TopMenu check Pseudo Code Here !!!
if (SuperController.singleton.activeUI == brahbrah~.ActiveTopMenu???)
{
SuperController.LogMessage("[INF] I'm here [TopMenu] ... ");
}
*/
}
}
Last edited: