docs.unity.cn
    Show / Hide Table of Contents

    Struct SystemAPIQueryBuilder

    Supports construction of queries matching one or multiple archetypes inside ISystem and SystemBase types. All queried components must be known at compile-time.

    Namespace: Unity.Entities
    Syntax
    public struct SystemAPIQueryBuilder

    Methods

    Name Description
    AddAdditionalQuery()

    Finalize the existing query description. All .WithXXX() invocations chained after this method will create a new query description.

    Build()

    Get or create an EntityQuery matching the query description(s).

    WithAbsent<T1>()

    Specify all read-only component types that must NOT be present.

    WithAbsent<T1, T2>()

    Specify all read-only component types that must NOT be present.

    WithAbsent<T1, T2, T3>()

    Specify all read-only component types that must NOT be present.

    WithAbsent<T1, T2, T3, T4>()

    Specify all read-only component types that must NOT be present.

    WithAbsent<T1, T2, T3, T4, T5>()

    Specify all read-only component types that must NOT be present.

    WithAbsent<T1, T2, T3, T4, T5, T6>()

    Specify all read-only component types that must NOT be present.

    WithAbsent<T1, T2, T3, T4, T5, T6, T7>()

    Specify all read-only component types that must NOT be present.

    WithAbsentChunkComponent<T1>()

    Add an absent Chunk Component type to the query.

    WithAll<T1>()

    Specify all read-only component types that must be present.

    WithAll<T1, T2>()

    Specify all read-only component types that must be present.

    WithAll<T1, T2, T3>()

    Specify all read-only component types that must be present.

    WithAll<T1, T2, T3, T4>()

    Specify all read-only component types that must be present.

    WithAll<T1, T2, T3, T4, T5>()

    Specify all read-only component types that must be present.

    WithAll<T1, T2, T3, T4, T5, T6>()

    Specify all read-only component types that must be present.

    WithAll<T1, T2, T3, T4, T5, T6, T7>()

    Specify all read-only component types that must be present.

    WithAllChunkComponent<T>()

    Add a required Chunk Component type to the query.

    WithAllChunkComponentRW<T>()

    Add a required Chunk Component type to the query.

    WithAllRW<T1>()

    Specify all read-write component types that must be present.

    WithAllRW<T1, T2>()

    Specify all read-write component types that must be present.

    WithAny<T1>()

    Specify optional read-only component types that must be present.

    WithAny<T1, T2>()

    Specify optional read-only component types that must be present.

    WithAny<T1, T2, T3>()

    Specify optional read-only component types that must be present.

    WithAny<T1, T2, T3, T4>()

    Specify optional read-only component types that must be present.

    WithAny<T1, T2, T3, T4, T5>()

    Specify optional read-only component types that must be present.

    WithAny<T1, T2, T3, T4, T5, T6>()

    Specify optional read-only component types that must be present.

    WithAny<T1, T2, T3, T4, T5, T6, T7>()

    Specify optional read-only component types that must be present.

    WithAnyChunkComponent<T>()

    Add an optional Chunk Component type to the query.

    WithAnyChunkComponentRW<T>()

    Add an optional Chunk Component type to the query.

    WithAnyRW<T1>()

    Specify optional read-write component types that must be present.

    WithAnyRW<T1, T2>()

    Specify optional read-write component types that must be present.

    WithAspect<TAspect>()

    Add component type requirement for a given aspect.

    WithDisabled<T1>()

    Specify all read-only DISABLED component types that must be present.

    WithDisabled<T1, T2>()

    Specify all read-only DISABLED component types that must be present.

    WithDisabled<T1, T2, T3>()

    Specify all read-only DISABLED component types that must be present.

    WithDisabled<T1, T2, T3, T4>()

    Specify all read-only DISABLED component types that must be present.

    WithDisabled<T1, T2, T3, T4, T5>()

    Specify all read-only DISABLED component types that must be present.

    WithDisabled<T1, T2, T3, T4, T5, T6>()

    Specify all read-only DISABLED component types that must be present.

    WithDisabled<T1, T2, T3, T4, T5, T6, T7>()

    Specify all read-only DISABLED component types that must be present.

    WithDisabledRW<T1>()

    Specify all DISABLED component types (with write access) that must be present.

    WithDisabledRW<T1, T2>()

    Specify all DISABLED component types (with write access) that must be present.

    WithNone<T1>()

    Specify component types that must NOT be present.

    WithNone<T1, T2>()

    Specify component types that must NOT be present.

    WithNone<T1, T2, T3>()

    Specify component types that must NOT be present.

    WithNone<T1, T2, T3, T4>()

    Specify component types that must NOT be present.

    WithNone<T1, T2, T3, T4, T5>()

    Specify component types that must NOT be present.

    WithNone<T1, T2, T3, T4, T5, T6>()

    Specify component types that must NOT be present.

    WithNone<T1, T2, T3, T4, T5, T6, T7>()

    Specify component types that must NOT be present.

    WithNoneChunkComponent<T>()

    Add an excluded Chunk Component type to the query.

    WithOptions(EntityQueryOptions)

    Specify your own EntityQueryOptions.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023