docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DidChange

    DidChange(Entity, uint)

    Reports whether any of IBufferElementData components of the type T, in the chunk containing the specified Entity, could have changed.

    Declaration
    public bool DidChange(Entity entity, uint version)
    Parameters
    Type Name Description
    Entity entity

    The entity.

    uint version

    The version to compare. In a system, this parameter should be set to the current LastSystemVersion at the time the job is run or scheduled.

    Returns
    Type Description
    bool

    True, if the version number stored in the chunk for this component is more recent than the version passed to the version parameter.

    Remarks

    Note that for efficiency, the change version applies to whole chunks not individual entities. The change version is incremented even when another job or system that has declared write access to a component does not actually change the component value.

    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)