文档

Unity Engine

Unity Engine

WithOptions(EntityQueryOptions)

Set options for the current query.
阅读时间1 分钟最后更新于 19 天前

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.