Пример #1
0
        public void SetupBeforeAllTests()
        {
            projectSettingsBackup = EditingContextManager.LoadProjectSettings();
            userSettingsBackup    = EditingContextManager.LoadUserSettings();

            EditingContextManager.ShowEditorVR();
        }
Пример #2
0
    IEnumerator Example()
    {
        yield return(new WaitForSeconds(2));

        //UnityEditor.EditorApplication.isPlaying = false;
        EditingContextManager.ShowEditorVR();
    }
Пример #3
0
 void Update()
 {
     if (!Application.isPlaying)
     {
         if (!string.IsNullOrEmpty(SceneState.sceneTo) && SceneState.alreadyStarted && SceneState.gamePlayed)
         {
             //string[] array = new string[1];
             //string openVR = PlayerSettings.GetVirtualRealitySDKs(BuildTargetGroup.Standalone)[1];
             //array[0] = openVR;
             //PlayerSettings.SetVirtualRealitySDKs(BuildTargetGroup.Standalone, array);
             //Debug.LogError(SceneState.sceneTo);
             EditorSceneManager.OpenScene(roomPath + SceneState.sceneTo);
             EditingContextManager.ShowEditorVR();
         }
     }
 }