コード例 #1
0
ファイル: UnityUIEvent.cs プロジェクト: inquick/BlueToolkit
 private static void ChangeDefaultFont()
 {
     if (Selection.activeGameObject != null)
     {
         Text text = Selection.activeGameObject.Get <Text>();
         if (text != null)
         {
             text.font = ToolCacheManager.GetFont();
         }
     }
 }
コード例 #2
0
ファイル: SetDefaultFont.cs プロジェクト: inquick/BlueToolkit
 public static void OpenWindow()
 {
     window         = GetWindow(typeof(SetDefaultFont));
     window.minSize = new Vector2(500, 300);
     m_font         = ToolCacheManager.GetFont();
 }