Esempio n. 1
0
    public void checkVisibility(ApplicationManager.UIMode mode)
    {
        bool result = false;

        if (displayModes.Contains(mode))
        {
            result = true;            //Show ();
        }
        else
        {
            result = false;            //Hide ();
        }

        if (result)
        {
            if (deviceOrientations.Count > 0)
            {
                result = deviceOrientations.Contains(AR.Core.DevicePose.Instance.CurrentOrientationState);
            }
        }

        if (alwaysOnInEditor && ApplicationManager.Instance.IsInEditor)
        {
            result = true;
        }

        if (result)
        {
            Show();
        }
        else
        {
            Hide();
        }
    }
Esempio n. 2
0
 virtual protected bool allowUIModeChange(ApplicationManager.UIMode current, ApplicationManager.UIMode candidate)
 {
     return(true);
 }