docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method EntityExists

    EntityExists(Entity)

    Reports whether the specified entity exists. Does not consider whether this component exists on the given entity.

    Declaration
    public bool EntityExists(Entity entity)
    Parameters
    Type Name Description
    Entity entity

    The referenced entity.

    Returns
    Type Description
    bool

    True if the entity exists, regardless of whether this entity has the given component.

    See Also
    TryGetComponent(Entity, out T, out bool)
    In This Article
    • EntityExists(Entity)
    Back to top
    Copyright © 2025 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)