0.8.3: Fixed issue, where creating a new scene didn't set scene picker as dirty
This commit is contained in:
parent
27ee0e48a7
commit
0a2858f8ca
|
|
@ -1,5 +1,6 @@
|
||||||
using Module.NavigationTool.Editor.Tools;
|
using Module.NavigationTool.Editor.Tools;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
|
using UnityEditor.SceneManagement;
|
||||||
using UnityEngine.SceneManagement;
|
using UnityEngine.SceneManagement;
|
||||||
|
|
||||||
namespace Module.NavigationTool.Editor.Toolbar
|
namespace Module.NavigationTool.Editor.Toolbar
|
||||||
|
|
@ -11,6 +12,7 @@ namespace Module.NavigationTool.Editor.Toolbar
|
||||||
{
|
{
|
||||||
EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
|
EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
|
||||||
SceneManager.activeSceneChanged += OnActiveSceneChanged;
|
SceneManager.activeSceneChanged += OnActiveSceneChanged;
|
||||||
|
EditorSceneManager.newSceneCreated += OnNewSceneCreated;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void OnPlayModeStateChanged(PlayModeStateChange state)
|
private static void OnPlayModeStateChanged(PlayModeStateChange state)
|
||||||
|
|
@ -22,5 +24,10 @@ namespace Module.NavigationTool.Editor.Toolbar
|
||||||
{
|
{
|
||||||
ToolScenePicker.SetAsDirty();
|
ToolScenePicker.SetAsDirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void OnNewSceneCreated(Scene scene, NewSceneSetup setup, NewSceneMode mode)
|
||||||
|
{
|
||||||
|
ToolScenePicker.SetAsDirty();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "com.module.navigationtool",
|
"name": "com.module.navigationtool",
|
||||||
"version": "0.8.2",
|
"version": "0.8.3",
|
||||||
"displayName": "Module.NavigationTool",
|
"displayName": "Module.NavigationTool",
|
||||||
"description": "Support for navigation tools, like favorites, history and toolbars",
|
"description": "Support for navigation tools, like favorites, history and toolbars",
|
||||||
"unity": "2019.2",
|
"unity": "2019.2",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue