27 lines
829 B
C#
27 lines
829 B
C#
#if UNITY_EDITOR
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
namespace Michsky.UI.Reach
|
|
{
|
|
public class InitReachUI
|
|
{
|
|
[InitializeOnLoad]
|
|
public class InitOnLoad
|
|
{
|
|
static InitOnLoad()
|
|
{
|
|
if (!EditorPrefs.HasKey("ReachUI.HasCustomEditorData"))
|
|
{
|
|
string darkPath = AssetDatabase.GetAssetPath(Resources.Load("ReachEditor-Dark"));
|
|
string lightPath = AssetDatabase.GetAssetPath(Resources.Load("ReachEditor-Light"));
|
|
|
|
EditorPrefs.SetString("ReachUI.CustomEditorDark", darkPath);
|
|
EditorPrefs.SetString("ReachUI.CustomEditorLight", lightPath);
|
|
EditorPrefs.SetInt("ReachUI.HasCustomEditorData", 1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif |