mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2024-12-23 01:59:40 +08:00
Remove pointless ToArray() call
This commit is contained in:
parent
621035c732
commit
c71748d22a
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user