mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 01:48:07 +08:00
Remove pointless ToArray() call
This commit is contained in:
1 parent
621035c732
commit
c71748d22a
1 file changed
+2
-2
@@ -26,7 +26,7 @@ namespace UnityExplorer.ObjectExplorer
|
||||
private static Scene? selectedScene;
|
||||
|
||||
/// <summary>The GameObjects in the currently inspected scene.</summary>
|
||||
public static GameObject[] CurrentRootObjects { get; private set; } = new GameObject[0];
|
||||
public static IEnumerable<GameObject> CurrentRootObjects { get; private set; } = new GameObject[0];
|
||||
|
||||
/// <summary>All currently loaded Scenes.</summary>
|
||||
public static List<Scene> LoadedScenes { get; private set; } = new();
|
||||
@@ -129,7 +129,7 @@ namespace UnityExplorer.ObjectExplorer
|
||||
if (go.transform.parent == null && !go.scene.IsValid())
|
||||
objects.Add(go);
|
||||
}
|
||||
CurrentRootObjects = objects.ToArray();
|
||||
CurrentRootObjects = objects;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user