docs.unity.cn
    Show / Hide Table of Contents

    Method SetChangedVersionFilter

    SetChangedVersionFilter(ComponentType)

    Filters out entities in chunks for which the specified component has not changed.

    Declaration
    public void SetChangedVersionFilter(ComponentType componentType)
    Parameters
    Type Name Description
    ComponentType 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 AddChangedVersionFilter(ComponentType).

    SetChangedVersionFilter(ComponentType[])

    Filters out entities in chunks for which the specified component has not changed.

    Declaration
    [ExcludeFromBurstCompatTesting("Takes managed array")]
    public void SetChangedVersionFilter(ComponentType[] componentType)
    Parameters
    Type Name Description
    ComponentType[] 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 AddChangedVersionFilter(ComponentType).

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023