GetComponentsInChildrenTemp
GetComponentsInChildrenTemp<T>(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)
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