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