private void OnEditorUpdate()
        {
            TypeSafeUtil.ReportCodeRefreshCompleted();

            Settings settings = Settings.Instance;

            if (settings == null)
            {
                return;
            }

            if (!WelcomeWindow.HasOpenedBefore() || !settings.HasShownWelcome)
            {
                TSLog.Log(LogCategory.Trace,
                          string.Format("Opening welcome window (HasOpenedBefore={0}, HasShownWelcome={1})", WelcomeWindow.HasOpenedBefore(), settings.HasShownWelcome));
                WelcomeWindow.Open();
            }
            else if (WelcomeWindow.GetPreviousOpenedVersion() != Strings.Version)
            {
                TSLog.Log(LogCategory.Trace,
                          string.Format("Opening changelog window (previousVersion={0}, currentVersion={1})", WelcomeWindow.GetPreviousOpenedVersion(), Strings.Version));
                WelcomeWindow.Open(true);

                TSLog.Log(LogCategory.Trace, "Clearing AssetTypeCache (new TypeSafe version detected)");
                AssetTypeCache.ClearCache();
            }

            Step();
        }
예제 #2
0
 /// <summary>
 /// Clear the internal cache of custom asset types
 /// </summary>
 public static void ClearAssetTypeCache()
 {
     AssetTypeCache.ClearCache();
 }