docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Field Version

    The generational version of the entity.

    Namespace: Unity.Entities
    Assembly: Unity.Entities.dll
    Syntax
    public int Version
    Returns
    Type Description
    int

    Used to determine whether this Entity object still identifies an existing entity.

    Remarks

    The Version number can, theoretically, overflow and wrap around within the lifetime of an application. For this reason, you cannot assume that an Entity instance with a larger Version is a more recent incarnation of the entity than one with a smaller Version (and the same Index).

    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)