public IEnumerator Verify_Camera_ClearFlags_SkyboxTest() { yield return(new WaitWhile(() => sceneLoaded == false)); yield return(null); IUsesSessionControl uiStateManager = Resources.FindObjectsOfTypeAll <UIStateManager>().First(); yield return(new WaitWhile(() => uiStateManager.SessionReady() == false)); yield return(null); Camera[] objects = Resources.FindObjectsOfTypeAll <Camera>(); Camera mainCamera = objects.SingleOrDefault(e => e.name == "Main Camera"); Assert.That(mainCamera.clearFlags == CameraClearFlags.Skybox); }
/// <summary> /// Create a new MR Session. If the session has been created, this does nothing. /// </summary> public static void ResumeSession(this IUsesSessionControl obj) { obj.provider.ResumeSession(); }
/// <summary> /// Resumes the MR Session. If a session has not has been paused, this does nothing. /// </summary> public static void PauseSession(this IUsesSessionControl obj) { obj.provider.PauseSession(); }
/// <summary> /// Pauses the MR Session. If a session has been paused, this does nothing. /// </summary> public static void DestroySession(this IUsesSessionControl obj) { obj.provider.DestroySession(); }
/// <summary> /// Create a new MR Session. If the session has been created, this does nothing. /// </summary> public static void CreateSession(this IUsesSessionControl obj) { obj.provider.CreateSession(); }
/// <summary> /// Check if the session is ready /// </summary> /// <returns>True if the session is ready, false otherwise</returns> public static bool SessionReady(this IUsesSessionControl obj) { return(obj.provider.SessionReady()); }
/// <summary> /// Check if the session exists, regardless of whether it is running /// </summary> /// <returns>True if the session exists, false otherwise</returns> public static bool SessionExists(this IUsesSessionControl obj) { return(obj.provider.SessionExists()); }