Documentation

Unity Engine


Unity Engine


SetChangedVersionFilter

Filters out entities in chunks for which the specified component has not changed.
Read time 1 minuteLast updated a day ago

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.