文档

Unity Engine

Download Unity

Unity Engine

SetChangedVersionFilter

Filters out entities in chunks for which the specified component has not changed.
阅读时间1 分钟最后更新于 20 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

SetChangedVersionFilter(ComponentType)

Filters out entities in chunks for which the specified component has not changed.
public void SetChangedVersionFilter(ComponentType componentType)

Parameters

componentType

ComponentType to mark as changed on this EntityQuery's filter.

Remarks

Saves a given ComponentType's index in RequiredComponents in this group's Changed filter. This call disables any existing chunk filtering on this query. For additive filtering, use EntityQuery.AddChangedVersionFilter.

SetChangedVersionFilter(ComponentType[])

Filters out entities in chunks for which the specified component has not changed.
[ExcludeFromBurstCompatTesting("Takes managed array")]public void SetChangedVersionFilter(ComponentType[] componentType)

Parameters

componentType

ComponentTypes to mark as changed on this EntityQuery's filter.

Remarks

Saves a given ComponentType's index in RequiredComponents in this group's Changed filter. This call disables any existing chunk filtering on this query. For additive filtering, use EntityQuery.AddChangedVersionFilter.