File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ namespace Irehon.Editor
5
5
{
6
6
public class NodeViewerWindow : EditorWindow
7
7
{
8
- private static readonly string WindowName = "Assets dependencies " ;
8
+ private static readonly string WindowName = "Assets" ;
9
9
private NodeGUILayout nodeGUILayout ;
10
10
private Vector2 scrollPosition ;
11
11
Original file line number Diff line number Diff line change @@ -38,14 +38,13 @@ public static string[] GetAllAssetsPaths()
38
38
39
39
public static string [ ] GetDependenciesPath ( )
40
40
{
41
- var gameScenes = AssetDatabase . FindAssets ( "t:Scene" , new string [ ] { "Assets/Scenes" } ) ;
42
-
43
- string [ ] scenesAssetId = new string [ gameScenes . Length ] ;
41
+ var scenes = EditorBuildSettings . scenes ;
42
+ string [ ] gameScenesPath = new string [ scenes . Length ] ;
44
43
45
- for ( int i = 0 ; i < gameScenes . Length ; i ++ )
46
- scenesAssetId [ i ] = AssetDatabase . GUIDToAssetPath ( gameScenes [ i ] ) ; ;
44
+ for ( int i = 0 ; i < scenes . Length ; i ++ )
45
+ gameScenesPath [ i ] = scenes [ i ] . path ;
47
46
48
- return AssetDatabase . GetDependencies ( scenesAssetId ) ;
47
+ return AssetDatabase . GetDependencies ( gameScenesPath ) ;
49
48
}
50
49
}
51
50
}
You can’t perform that action at this time.
0 commit comments