Method GetComponentsInScene
GetComponentsInScene<T>(Scene, List<T>, bool)
Retrieves all components of the given type in a scene
Declaration
public static void GetComponentsInScene<T>(Scene scene, List<T> components, bool includeInactive = false) where T : Component
Parameters
Type | Name | Description |
---|---|---|
Scene | scene | The scene to search |
List<T> | components | List that will be filled out with components retrieved |
bool | includeInactive | Should Components on inactive GameObjects be included in the found set? |
Type Parameters
Name | Description |
---|---|
T | The type of components to retrieve |