Exemplo n.º 1
0
        private void SetGameViewsEnabled(bool enabled)
        {
            Assembly asm  = Assembly.GetAssembly(typeof(UnityEditor.EditorWindow));
            Type     type = asm.GetType("UnityEditor.GameView");

            SceneViewUtilities.SetViewsEnabled(type, enabled);
        }
Exemplo n.º 2
0
 private void SetSceneViewsEnabled(bool enabled)
 {
     // It's costly to call through to SetViewsEnabled, so only call when the value has changed
     if (m_SceneViewsEnabled != enabled)
     {
         SceneViewUtilities.SetViewsEnabled(typeof(SceneView), enabled);
         m_SceneViewsEnabled = enabled;
     }
 }
Exemplo n.º 3
0
 private void SetSceneViewsEnabled(bool enabled)
 {
     SceneViewUtilities.SetViewsEnabled(typeof(SceneView), enabled);
 }