Documentation

Unity Engine


Unity Engine


WithPresentChunkComponent<T>()

Add a required read-only chunk component type to the query, whether it is enabled or disabled.
Read time 1 minuteLast updated 2 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public EntityQueryBuilder WithPresentChunkComponent<T>()

Returns

Type

Description

EntityQueryBuilderThe builder object that invoked this method.

Remarks

Call this method on the query builder to find entities that have all the specified chunk components, whether it is enabled or disabled. Chunk components are a distinct component type, which are different from adding the same type as a standard component.
To add additional required Chunk Components, call this method multiple times.
The query will request read-only access to the referenced component(s). To request read/write access, use EntityQueryBuilder.WithPresentChunkComponentRW@@<c>1(</c>@@0)