docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsEnabled

    IsEnabled(Entity)

    Check whether an entire entity has the Disabled tag component.

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

    The entity to check

    Returns
    Type Description
    bool

    True if the target entity does not have Disabled tag component, or false if it does.

    Remarks

    Entities with the Disabled component are not matched by any EntityQuery, and are therefore not processed by systems. To override this behavior for a specific query, use EntityQueryOptions.IncludeDisabledEntities at query creation time.

    See Also
    SetEnabled(Entity, bool)
    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)