Method GetComponentsInActiveScene
GetComponentsInActiveScene<T>(List<T>, bool)
Retrieves all components of the given type in the active scene
Declaration
public static void GetComponentsInActiveScene<T>(List<T> components, bool includeInactive = false) where T : Component
Parameters
Type | Name | Description |
---|---|---|
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 |