GetComponentsInChildrenTemp
GetComponentsInChildrenTemp<T>(GameObject)
public static List<T> GetComponentsInChildrenTemp<T>(this GameObject gameObject) ;
Description
Get a List of components, including the components of the child GameObject. Since the acquired List instance is shared, it can be used only temporarily.
Type Parameters
Type Parameter Name | Description | Type Constraints |
---|---|---|
T | Component type |
Parameters
Parameter Name | Description |
---|---|
gameObject | GameObject |
Returns
List of components
GetComponentsInChildrenTemp<T>(Component)
public static List<T> GetComponentsInChildrenTemp<T>(this Component component) ;
Description
Get a List of components, including the components of the child GameObject. Since the acquired List instance is shared, it can be used only temporarily.
Type Parameters
Type Parameter Name | Description | Type Constraints |
---|---|---|
T | Component type |
Parameters
Parameter Name | Description |
---|---|
component | Component |
Returns
List of components