docs.unity.cn
    Show / Hide Table of Contents

    Struct Disabled

    Disables the entity.

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

    By default, an EntityQuery ignores all entities that have a Disabled component. You can override this default behavior by setting the IncludeDisabled flag of the EntityQueryDesc object used to create the query. When using the EntityQueryBuilder class in a ComponentSystem, set this flag by calling the With(EntityQueryOptions) function.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use