Struct ColliderAspect.Lookup
A container type that provides access to instances of the enclosing Aspect type, indexed by Entity. Equivalent to ComponentLookup<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.Lookup
Remarks
Using this in an IJobEntity is not supported.
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. |