Struct ColliderAspect.TypeHandle
A handle to the enclosing aspect type, used to access a ColliderAspect.ResolvedChunk's components data in a job. Equivalent to Unity.Entities.ComponentTypeHandle<T> but for aspect types. Constructed from an system state via its constructor.
Inherited Members
Namespace: Unity.Physics.Aspects
Assembly: Unity.Physics.dll
Syntax
public struct ColliderAspect.TypeHandle
Constructors
TypeHandle(ref SystemState)
Create the aspect type handle from an system state.
Declaration
public TypeHandle(ref SystemState state)
Parameters
Type | Name | Description |
---|---|---|
SystemState | state | System state to create the type handle from. |
Methods
Resolve(ArchetypeChunk)
Get the enclosing aspect's ColliderAspect.ResolvedChunk from an Unity.Entities.ArchetypeChunk.
Declaration
public ColliderAspect.ResolvedChunk Resolve(ArchetypeChunk chunk)
Parameters
Type | Name | Description |
---|---|---|
ArchetypeChunk | chunk | The ArchetypeChunk to extract the aspect's ResolvedChunk from. |
Returns
Type | Description |
---|---|
ColliderAspect.ResolvedChunk | A ResolvedChunk representing all instances of the aspect in the chunk. |
Update(ref SystemState)
Update the type handle container. Must be called every frames before using the type handle.
Declaration
public void Update(ref SystemState state)
Parameters
Type | Name | Description |
---|---|---|
SystemState | state | The system state the aspect type handle was created from. |