浏览代码

Fixed Welcome screen from showing up on domain reload. (#28)

/main
GitHub 4 年前
当前提交
160feeeb
共有 2 个文件被更改,包括 12 次插入1 次删除
  1. 1
      CHANGELOG.md
  2. 12
      Editor/WelcomeScreen/WelcomeScreen.cs

1
CHANGELOG.md


#### Fixed
* Fixed Welcome screen from showing up on domain reload.
* Fixed Take Screenshot Action : Bad Filename + Added Tooltips
* Fixed property name in NonNullCheck property drawer
* Fixed Potential null in Discover Window

12
Editor/WelcomeScreen/WelcomeScreen.cs


{
if (showOnStartup && !GameplayIngredientsSettings.currentSettings.disableWelcomeScreenAutoStart)
EditorApplication.update += ShowAtStartup;
EditorApplication.quitting += EditorApplication_quitting;
}
const string kShowNextPreference = "GameplayIngredients.WelcomeScreen.ShowNextTime";
private static void EditorApplication_quitting()
{
EditorPrefs.SetBool(kShowNextPreference, true);
if (!Application.isPlaying)
if (!Application.isPlaying && EditorPrefs.GetBool(kShowNextPreference, true))
EditorPrefs.SetBool(kShowNextPreference, false);
}
EditorApplication.update -= ShowAtStartup;
}

正在加载...
取消
保存