Method ToComponentArray
ToComponentArray<T>(EntityQuery)
Gather values of a component from all entities that match a query into a managed array.
Declaration
public static T[] ToComponentArray<T>(this EntityQuery query) where T : class
Parameters
| Type | Name | Description | 
|---|---|---|
| EntityQuery | query | The query whose entities should have their   | 
    
Returns
| Type | Description | 
|---|---|
| T[] | A managed array of   | 
    
Type Parameters
| Name | Description | 
|---|---|
| T | The managed component type to gather  |