docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Field Index

    The ID of an entity.

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

    The index into the internal list of entities.

    Remarks

    Entity indexes are recycled when an entity is destroyed. When an entity is destroyed, the EntityManager increments the version identifier. To represent the same entity, both the Index and the Version fields of the Entity object must match. If the Index is the same, but the Version is different, then the entity has been recycled.

    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)