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 |
---|---|---|
Component |
typeHandle | The type handle for the target component type. |
Entity |
manager | The EntityManager which owns this chunk. |
Returns
Type | Description |
---|---|
Managed |
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 Get
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 |
---|---|---|
Component |
typeHandle | The type handle for the target component type. |
Entity |
manager | The EntityManager which owns this chunk. |
Returns
Type | Description |
---|---|
Managed |
An interface to this chunk's component values for type |
Type Parameters
Name | Description |
---|---|
T | The target component type |