private GetRootGameObjectsInternal ( int sceneHandle, object resultRootList ) : void | ||
sceneHandle | int | |
resultRootList | object | |
Résultat | void |
public void GetRootGameObjects(List <GameObject> rootGameObjects) { bool flag = rootGameObjects.Capacity < this.rootCount; if (flag) { rootGameObjects.Capacity = this.rootCount; } rootGameObjects.Clear(); bool flag2 = !this.IsValid(); if (flag2) { throw new ArgumentException("The scene is invalid."); } bool flag3 = !Application.isPlaying && !this.isLoaded; if (flag3) { throw new ArgumentException("The scene is not loaded."); } bool flag4 = this.rootCount == 0; if (!flag4) { Scene.GetRootGameObjectsInternal(this.handle, rootGameObjects); } }
public void GetRootGameObjects(List <GameObject> rootGameObjects) { if (rootGameObjects.Capacity < this.rootCount) { rootGameObjects.Capacity = this.rootCount; } rootGameObjects.Clear(); if (!this.IsValid()) { throw new ArgumentException("The scene is invalid."); } if (!this.isLoaded) { throw new ArgumentException("The scene is not loaded."); } if (this.rootCount != 0) { Scene.GetRootGameObjectsInternal(this.handle, rootGameObjects); } }