Apply pr changes
This commit is contained in:
parent
f3f386d4c0
commit
b7dfa7bffa
@ -10,6 +10,8 @@ namespace NegUtils.Editor
|
|||||||
[InitializeOnLoad]
|
[InitializeOnLoad]
|
||||||
public class ToolsWindowBase : EditorWindow
|
public class ToolsWindowBase : EditorWindow
|
||||||
{
|
{
|
||||||
|
private const int UnitySceneExtensionLength = 6;
|
||||||
|
|
||||||
static ToolsWindowBase()
|
static ToolsWindowBase()
|
||||||
{
|
{
|
||||||
EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
|
EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
|
||||||
@ -69,7 +71,7 @@ namespace NegUtils.Editor
|
|||||||
for (int i = 0; i < fileInfo.Length; i++)
|
for (int i = 0; i < fileInfo.Length; i++)
|
||||||
{
|
{
|
||||||
string s = fileInfo[i];
|
string s = fileInfo[i];
|
||||||
menu.AddItem(new GUIContent(s.Remove(0, basePath.Length + 1).Remove(s.Length - basePath.Length - 7 ,6).Replace('\\', '/')), false, () => {
|
menu.AddItem(new GUIContent(s.Remove(0, basePath.Length + 1).Remove(s.Length - basePath.Length - UnitySceneExtensionLength - 1 ,UnitySceneExtensionLength).Replace('\\', '/')), false, () => {
|
||||||
LoadScene(s);
|
LoadScene(s);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user