StationObscurum/Assets/Packages/Heat - Complete Modern UI/Editor/Scripts/InitHeatUI.cs
2024-02-01 22:45:59 -05:00

27 lines
825 B
C#

#if UNITY_EDITOR
using UnityEngine;
using UnityEditor;
namespace Michsky.UI.Heat
{
public class InitHeatUI
{
[InitializeOnLoad]
public class InitOnLoad
{
static InitOnLoad()
{
if (!EditorPrefs.HasKey("HeatUI.HasCustomEditorData"))
{
string darkPath = AssetDatabase.GetAssetPath(Resources.Load("HeatUIEditor-Dark"));
string lightPath = AssetDatabase.GetAssetPath(Resources.Load("HeatUIEditor-Light"));
EditorPrefs.SetString("HeatUI.CustomEditorDark", darkPath);
EditorPrefs.SetString("HeatUI.CustomEditorLight", lightPath);
EditorPrefs.SetInt("HeatUI.HasCustomEditorData", 1);
}
}
}
}
}
#endif