基础内容
必要插件安装 缓动曲线和动画基础 ElementFolder,Track与其次级模块,PathNode重构
This commit is contained in:
24
Assets/Modern UI Pack/Editor/Scripts/InitMUIP.cs
Normal file
24
Assets/Modern UI Pack/Editor/Scripts/InitMUIP.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
#if UNITY_EDITOR
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Michsky.MUIP
|
||||
{
|
||||
public class InitMUIP
|
||||
{
|
||||
[InitializeOnLoad]
|
||||
public class InitOnLoad
|
||||
{
|
||||
static InitOnLoad()
|
||||
{
|
||||
if (!EditorPrefs.HasKey("MUIP.HasCustomEditorData"))
|
||||
{
|
||||
EditorPrefs.SetInt("MUIP.HasCustomEditorData", 1);
|
||||
EditorPrefs.SetString("MUIP.CustomEditorDark", AssetDatabase.GetAssetPath(Resources.Load("MUIP-EditorDark")));
|
||||
EditorPrefs.SetString("MUIP.CustomEditorLight", AssetDatabase.GetAssetPath(Resources.Load("MUIP-EditorLight")));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user