Summary
Performs a search of the entity and it's ancestors for all components of the specified type.
- Namespace
- StrideToolkit
.Engine - Containing Type
- Entity
Component Search Extensions
Syntax
public static IEnumerable<T> GetComponentsInParent<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 |
|---|---|
| IEnumerable |
An iteration on the components. |
