mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-09-20 21:46:02 +08:00
1.5.5
* Fix for GetRootSceneObjects * Tidy ups
This commit is contained in:
@ -75,9 +75,14 @@ namespace Explorer
|
||||
else
|
||||
{
|
||||
var scene = SceneManager.GetSceneByName(m_currentScene);
|
||||
var rootObjects = scene.GetRootGameObjects();
|
||||
|
||||
foreach (var obj in rootObjects)
|
||||
var list = new Il2CppSystem.Collections.Generic.List<GameObject>
|
||||
{
|
||||
Capacity = scene.rootCount
|
||||
};
|
||||
Scene.GetRootGameObjectsInternal(scene.handle, list);
|
||||
|
||||
foreach (var obj in list)
|
||||
{
|
||||
allTransforms.Add(obj.transform);
|
||||
}
|
||||
|
Reference in New Issue
Block a user