Method GetAllSceneObjects
GetAllSceneObjects<T>()
Gets all scene objects in the hierarchy, including inactive objects. This method is slow on large scenes and should be used with extreme caution.
Declaration
public static IEnumerable<T> GetAllSceneObjects<T>() where T : Component
Returns
Type | Description |
---|---|
IEnumerable<T> | A list of all components of type |
Type Parameters
Name | Description |
---|---|
T | The component to look for |