Struct ColliderAspect.Lookup
Inherited Members
Namespace: Unity.Physics.Aspects
Assembly: Unity.Physics.dll
Syntax
public struct ColliderAspect.Lookup
Constructors
Lookup(ref SystemState)
Create the aspect lookup from an system state.
Declaration
public Lookup(ref SystemState state)
Parameters
Type | Name | Description |
---|---|---|
SystemState | state | The system state to create the aspect lookup from. |
Properties
this[Entity]
Get an aspect instance pointing at a specific entity's components data.
Declaration
public ColliderAspect this[Entity entity] { get; }
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity to create the aspect struct from. |
Property Value
Type | Description |
---|---|
ColliderAspect | Instance of the aspect struct pointing at a specific entity's components data. |
Methods
Update(ref SystemState)
Update the lookup container. Must be called every frames before using the lookup.
Declaration
public void Update(ref SystemState state)
Parameters
Type | Name | Description |
---|---|---|
SystemState | state | The system state the aspect lookup was created from. |