MayHeCome/Assets/Exoa/Common/Packages/UIElements/Editor/EditorFontAwesome.cs

17 lines
487 B
C#
Raw Normal View History

2024-12-18 09:55:34 +00:00
using UnityEditor;
using UnityEditor.Callbacks;
namespace UnityEngine.Style.Icon {
[InitializeOnLoad]
internal static class EditorFontAwesome {
static EditorFontAwesome( ) {
if( EditorApplication.isPlayingOrWillChangePlaymode ) return;
EditorApplication.delayCall += Initizlie;
}
private static void Initizlie( ) {
if( EditorApplication.isPlayingOrWillChangePlaymode ) return;
FontAwesomeInfo.Initialize( );
}
}
}