Struct Disabled | Entities | 0.16.0-preview.21
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 © 2020 Unity Technologies
    Generated by DocFX
    on 30 October 2020