浏览代码

Added entry for startup wizard

/feature-new-input-system
Thomas ICHÉ 4 年前
当前提交
2c30bd63
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
      Editor/WelcomeScreen/WelcomeScreen.cs

7
Editor/WelcomeScreen/WelcomeScreen.cs


GetWindow<WelcomeScreen>(true, "Gameplay Ingredients");
}
[MenuItem("Window/Gameplay Ingredients/Setup Wizard", priority = MenuItems.kWindowMenuPriority)]
static void ShowWizard()
{
var window = GetWindow<WelcomeScreen>(true, "Gameplay Ingredients");
window.wizardMode = WizardMode.FirstTimeSetup;
}
private void OnEnable()
{
this.position = new Rect((Screen.width / 2.0f) - WindowWidth / 2, (Screen.height / 2.0f) - WindowHeight / 2, WindowWidth, WindowHeight);

正在加载...
取消
保存