docs.unity3d.com
    Show / Hide Table of Contents

    Interface IEntityMap<T>

    Common interface for the per-entity data storage.

    Namespace: Unity.Entities.Editor
    Syntax
    public interface IEntityMap<T> : IDisposable where T : struct
    Type Parameters
    Name Description
    T

    The data type stored.

    Properties

    Name Description
    Capacity

    Returns the upper bound for the array.

    Count

    Returns the number of entries in the storage.

    Item[Entity]

    Gets or sets the data for the specified Entity.

    Methods

    Name Description
    Clear()

    Clears the storage for re-use.

    Exists(Entity)

    Returns true if the specified entity exists in the storage.

    Remove(Entity)

    Removes the data for the specified entity.

    Resize(Int32)

    Resizes to sparse data set to the given capacity.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023