docs.unity3d.com
Search Results for

    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).

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)