docs.unity.cn
    Show / Hide Table of Contents

    Method WithAny

    WithAny<TComponent1>()

    Specify optional read-only component types.

    Declaration
    public QueryEnumerable<T1, T2, T3, T4> WithAny<TComponent1>()
    Returns
    Type Description
    QueryEnumerable<T1, T2, T3, T4>

    QueryEnumerable, which allows enumerating over all Aspects, RefRO, RefRW, EnabledRefRO and EnabledRefRW components that match the constructed Query.

    Type Parameters
    Name Description
    TComponent1

    Optional component

    WithAny<TComponent1, TComponent2>()

    Specify optional read-only component types.

    Declaration
    public QueryEnumerable<T1, T2, T3, T4> WithAny<TComponent1, TComponent2>()
    Returns
    Type Description
    QueryEnumerable<T1, T2, T3, T4>

    QueryEnumerable, which allows enumerating over all Aspects, RefRO, RefRW, EnabledRefRO and EnabledRefRW components that match the constructed Query.

    Type Parameters
    Name Description
    TComponent1

    Optional component

    TComponent2

    Optional component

    WithAny<TComponent1, TComponent2, TComponent3>()

    Specify optional read-only component types.

    Declaration
    public QueryEnumerable<T1, T2, T3, T4> WithAny<TComponent1, TComponent2, TComponent3>()
    Returns
    Type Description
    QueryEnumerable<T1, T2, T3, T4>

    QueryEnumerable, which allows enumerating over all Aspects, RefRO, RefRW, EnabledRefRO and EnabledRefRW components that match the constructed Query.

    Type Parameters
    Name Description
    TComponent1

    Optional component

    TComponent2

    Optional component

    TComponent3

    Optional component

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, August 10, 2023