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);
        }
Esempio n. 2
0
 /// <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();
 }
Esempio n. 3
0
 /// <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();
 }
Esempio n. 4
0
 /// <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();
 }
Esempio n. 5
0
 /// <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();
 }
Esempio n. 6
0
 /// <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());
 }
Esempio n. 7
0
 /// <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());
 }