0.8.3: Fixed issue, where creating a new scene didn't set scene picker as dirty

This commit is contained in:
Anders Ejlersen 2021-10-16 02:01:28 +02:00
parent 27ee0e48a7
commit 0a2858f8ca
2 changed files with 8 additions and 1 deletions

View file

@ -1,5 +1,6 @@
using Module.NavigationTool.Editor.Tools;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine.SceneManagement;
namespace Module.NavigationTool.Editor.Toolbar
@ -11,6 +12,7 @@ namespace Module.NavigationTool.Editor.Toolbar
{
EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
SceneManager.activeSceneChanged += OnActiveSceneChanged;
EditorSceneManager.newSceneCreated += OnNewSceneCreated;
}
private static void OnPlayModeStateChanged(PlayModeStateChange state)
@ -22,5 +24,10 @@ namespace Module.NavigationTool.Editor.Toolbar
{
ToolScenePicker.SetAsDirty();
}
private static void OnNewSceneCreated(Scene scene, NewSceneSetup setup, NewSceneMode mode)
{
ToolScenePicker.SetAsDirty();
}
}
}

View file

@ -1,6 +1,6 @@
{
"name": "com.module.navigationtool",
"version": "0.8.2",
"version": "0.8.3",
"displayName": "Module.NavigationTool",
"description": "Support for navigation tools, like favorites, history and toolbars",
"unity": "2019.2",