Method GetManagedComponentAccessor
GetManagedComponentAccessor<T>(ref ComponentTypeHandle<T>, EntityManager)
Provides access to a chunk's array of component values for a specific managed component type.
Declaration
public readonly ManagedComponentAccessor<T> GetManagedComponentAccessor<T>(ref ComponentTypeHandle<T> typeHandle, EntityManager manager) where T : class
Parameters
Type | Name | Description |
---|---|---|
ComponentTypeHandle<T> | typeHandle | The type handle for the target component type. |
EntityManager | manager | The EntityManager which owns this chunk. |
Returns
Type | Description |
---|---|
ManagedComponentAccessor<T> | An interface to this chunk's component values for type |
Type Parameters
Name | Description |
---|---|
T | The target component type |
GetManagedComponentAccessor<T>(ComponentTypeHandle<T>, EntityManager)
Obsolete. Use GetManagedComponentAccessor<T>(ref ComponentTypeHandle<T>, EntityManager) instead.
Declaration
[Obsolete("The typeHandle argument should now be passed by ref. (RemovedAfter Entities 1.0)", false)]
public readonly ManagedComponentAccessor<T> GetManagedComponentAccessor<T>(ComponentTypeHandle<T> typeHandle, EntityManager manager) where T : class
Parameters
Type | Name | Description |
---|---|---|
ComponentTypeHandle<T> | typeHandle | The type handle for the target component type. |
EntityManager | manager | The EntityManager which owns this chunk. |
Returns
Type | Description |
---|---|
ManagedComponentAccessor<T> | An interface to this chunk's component values for type |
Type Parameters
Name | Description |
---|---|
T | The target component type |