docs.unity.cn
    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
    Boolean

    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, Boolean)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023