ドキュメント

Unity Engine

Download Unity

Unity Engine

CalculateChunkCount()

Calculates the number of chunks that match this EntityQuery, taking into account all active query filters and enabled components.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public int CalculateChunkCount()

Returns

Type

Description

intThe number of chunks based on the current EntityQuery properties.

Remarks

This count will not include chunks that do not pass any active chunk-level filters (e.g. EntityQuery.SetSharedComponentFilter), nor any chunks where zero entities have all the required components enabled.