Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

EntityQueryBuilder.Build

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public EntityQuery Build(ref SystemState systemState);

Parameters

Parameter Description
systemState SystemState of the system that will own the EntityQuery.

Returns

EntityQuery An EntityQuery based on the constraints set in the EntityQueryBuilder

Description

Create an EntityQuery owned by an ISystem's SystemState.

The System owning the systemState object retains this EntityQuery and disposes it at the end of the System's lifespan.


Declaration

public EntityQuery Build(SystemBase systemBase);

Parameters

Parameter Description
systemBase System that will own the EntityQuery.

Returns

EntityQuery An EntityQuery based on the constraints set in the EntityQueryBuilder

Description

Create an EntityQuery owned by an SystemBase.

The SystemBase argument retains the EntityQuery, and disposes it at the end of that system's lifetime.


Declaration

public EntityQuery Build(EntityManager entityManager);

Parameters

Parameter Description
entityManager EntityManager that will own the EntityQuery.

Returns

EntityQuery An EntityQuery based on the constraints set in the EntityQueryBuilder.

Description

Create an EntityQuery owned by an EntityManager.

The EntityManager retains the EntityQuery, and disposes it at the end of that EntityManager's corresponding World's lifetime.