浏览代码

Fixes in welcomeScreen behaviour

/main
peeweek 6 年前
当前提交
c74dc848
共有 1 个文件被更改,包括 12 次插入2 次删除
  1. 14
      Editor/WelcomeScreen/WelcomeScreen.cs

14
Editor/WelcomeScreen/WelcomeScreen.cs


static readonly Texture2D header = (Texture2D)EditorGUIUtility.Load("Packages/net.peeweek.gameplay-ingredients/Editor/WelcomeScreen/welcome-title.png");
[InitializeOnLoadMethod]
static void ShowOnStartup()
static void InitShowAtStartup()
GetWindow<WelcomeScreen>(true, "Gameplay Ingredients");
EditorApplication.update += ShowAtStartup;
}
static void ShowAtStartup()
{
if(!Application.isPlaying)
{
ShowFromMenu();
}
EditorApplication.update -= ShowAtStartup;
}
[MenuItem("Window/Gameplay Ingredients/Startup Wizard")]

正在加载...
取消
保存