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

EntityQueryBuilder.AddAdditionalQuery

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 EntityQueryBuilder AddAdditionalQuery();

Returns

EntityQueryBuilder Returns the amended EntityQuery.

Description

Add an additional query description to a single EntityQuery.

The ability to construct an EntityQuery from multiple query descriptions is preserved for backwards compatibility, but the use of this feature is strongly discouraged in user projects. Queries with multiple query descriptions are not guaranteed to function correctly in all contexts.

The resulting EntityQuery will match all entities matched by any individual query description. In terms of set theory, the query matches the union of its query descriptions, not the intersection. The EntityQuery created from this builder matches entities that have a Parent component but no Child component OR have a Child component but no Parent component.