Example #1
0
 static void _TMPro_TMP_Text()
 {
     //if( EditorHelper.HasMenuItem( FONT_ASSET_CREATOR ) ) {
     if (tico == null)
     {
         tico = UnityTypes.TMPro_TextMeshProUGUI.GetIcon();
     }
     if (SceneViewTools.ShowSideButton(FONT_ASSET_CREATOR.FileNameWithoutExtension(), tico))
     {
         EditorApplication.ExecuteMenuItem(FONT_ASSET_CREATOR);
     }
     //}
 }
Example #2
0
 static void _ReflectionProbe()
 {
     if (SceneViewTools.ShowSideButton("Bake", EditorIcon.icons_processed_unityengine_reflectionprobe_icon_asset))
     {
         foreach (var p in SelectionHierarchy.current.GetComponents <ReflectionProbe>())
         {
             UnityEditorLightmapping.BakeReflectionProbeSnapshot(p);
         }
     }
     if (SceneViewTools.ShowSideButton("Bake All Reflection Probes", EditorIcon.icons_processed_unityengine_reflectionprobe_icon_asset))
     {
         UnityEditorLightmapping.BakeAllReflectionProbesSnapshots();
     }
 }
Example #3
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();
         }
     }
 }