Example #1
0
 private static void ChangeDefaultFont()
 {
     if (Selection.activeGameObject != null)
     {
         Text text = Selection.activeGameObject.Get <Text>();
         if (text != null)
         {
             text.font = ToolCacheManager.GetFont();
         }
     }
 }
Example #2
0
 public static void OpenWindow()
 {
     window         = GetWindow(typeof(SetDefaultFont));
     window.minSize = new Vector2(500, 300);
     m_font         = ToolCacheManager.GetFont();
 }