* Fix for GetRootSceneObjects
* Tidy ups
This commit is contained in:
sinaioutlander
2020-09-04 23:49:43 +10:00
parent 72ec34090d
commit d20461fa0e
6 changed files with 44 additions and 60 deletions

View File

@ -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);
}