Esempio n. 1
0
 static void _Light()
 {
     SceneViewTools.ShowWindowButton(UnityTypes.UnityEditor_LightingWindow, "Lighting", EditorIcon.lighting);
     SceneViewTools.ShowWindowButton(UnityTypes.UnityEditor_LightingExplorerWindow, "Light Explorer", EditorIcon.lighting);
     if (Lightmapping.isRunning)
     {
         if (SceneViewTools.ShowSideButton("Cancel", EditorIcon.lighting))
         {
             Lightmapping.Cancel();
         }
     }
     else
     {
         if (SceneViewTools.ShowSideButton("Generate Lighting", EditorIcon.lighting))
         {
             Lightmapping.ClearLightingDataAsset();
             Lightmapping.Clear();
             Lightmapping.BakeAsync();
         }
     }
 }
Esempio n. 2
0
 static void _Animator()
 {
     SceneViewTools.ShowWindowButton(UnityTypes.UnityEditor_Graphs_AnimatorControllerTool, "Animator", EditorIcon.unityeditor_graphs_animatorcontrollertool);
     SceneViewTools.ShowWindowButton(UnityTypes.UnityEditor_AnimationWindow, "Animation", EditorIcon.unityeditor_animationwindow);
 }