Method Build
Build(ref SystemState)
Create an EntityQuery owned by an ISystem's System
Declaration
public EntityQuery Build(ref SystemState systemState)
Parameters
Type | Name | Description |
---|---|---|
System |
systemState | SystemState of the system that will own the EntityQuery. |
Returns
Type | Description |
---|---|
Entity |
An EntityQuery based on the constraints set in the EntityQueryBuilder |
Remarks
The System owning the systemState object retains this EntityQuery and disposes it at the end of the System's lifespan.
Build(SystemBase)
Create an EntityQuery owned by an System
Declaration
[ExcludeFromBurstCompatTesting("SystemBase is a managed class")]
public EntityQuery Build(SystemBase systemBase)
Parameters
Type | Name | Description |
---|---|---|
System |
systemBase | System that will own the EntityQuery. |
Returns
Type | Description |
---|---|
Entity |
An EntityQuery based on the constraints set in the EntityQueryBuilder |
Remarks
The SystemBase argument retains the EntityQuery, and disposes it at the end of that system's lifetime.
Build(EntityManager)
Create an EntityQuery owned by an Entity
Declaration
public EntityQuery Build(EntityManager entityManager)
Parameters
Type | Name | Description |
---|---|---|
Entity |
entityManager | EntityManager that will own the EntityQuery. |
Returns
Type | Description |
---|---|
Entity |
An EntityQuery based on the constraints set in the EntityQueryBuilder. |
Remarks
The EntityManager retains the EntityQuery, and disposes it at the end of that EntityManager's corresponding World's lifetime.