docs.unity.cn
    Show / Hide Table of Contents

    Struct Disabled

    Disables the entity.

    Namespace: Unity.Entities
    Syntax
    public struct Disabled : IComponentData, IQueryTypeParameter
    Remarks

    By default, an EntityQuery ignores all entities that have this component. You can override this default behavior by setting the EntityQueryOptions.IncludeDisabledEntities flag of the EntityQueryDesc object used to create the query.

    See Also

    IsEnabled(Entity)
    SetEnabled(Entity, Boolean)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023