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(); } }
virtual protected bool allowUIModeChange(ApplicationManager.UIMode current, ApplicationManager.UIMode candidate) { return(true); }