RuntimeSceneUtils.GetRootGameObjectsInLoadedScenes Method

Definition

Returns all root GameObjects in all loaded scenes.

public:
 static System::Collections::Generic::IEnumerable<UnityEngine::GameObject ^> ^ GetRootGameObjectsInLoadedScenes();
public static System.Collections.Generic.IEnumerable<UnityEngine.GameObject> GetRootGameObjectsInLoadedScenes ();
static member GetRootGameObjectsInLoadedScenes : unit -> seq<UnityEngine.GameObject>
Public Shared Iterator Function GetRootGameObjectsInLoadedScenes () As IEnumerable(Of GameObject)

Returns

IEnumerable<UnityEngine.GameObject>

Applies to