Documentation

Unity Engine


Unity Engine


WithOptions(EntityQueryOptions)

Set options for the current query.
Read time 1 minuteLast updated 3 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public EntityQueryBuilder WithOptions(EntityQueryOptions options)

Parameters

EntityQueryOptions flags to set for the current query

Returns

Type

Description

EntityQueryBuilderThe builder object that invoked this method.

Remarks

You should not need to set these options for most queries.
You should only call WithOptions once for each query description. Subsequent calls override previous options, rather than adding to them. Use the bitwise OR operator '|' to combine multiple options.