GameObject[] An array of game objects.
Returns all the root game objects in the scene.
rootGameObjects | A list which is used to return the root game objects. |
Returns all the root game objects in the scene.
Please make sure the list capacity is bigger than Scene.rootCount, then Unity will not allocate memory internally.
Did you find this page useful? Please give it a rating: