Summary
Performs a breadth first search of the entities children for a component of the specified type.
- Namespace
- StrideToolkit
.Engine - Containing Type
- Entity
Component Search Extensions
Syntax
public static T GetComponentInChildren<T>(this Entity entity) where T : EntityComponent
Type Parameters
| Name | Description |
|---|---|
| T | The type of component. |
Parameters
| Name | Type | Description |
|---|---|---|
| entity | Entity | The entity. |
Return Value
| Type | Description |
|---|---|
| T | The component or null if does no exist. |
