docs.unity.cn
    Show / Hide Table of Contents

    Method WithOptions

    WithOptions(EntityQueryOptions)

    Specify your own EntityQueryOptions.

    Declaration
    public readonly QueryEnumerableWithEntity<T1, T2, T3, T4, T5> WithOptions(EntityQueryOptions options)
    Parameters
    Type Name Description
    EntityQueryOptions options

    The options for this query

    Returns
    Type Description
    QueryEnumerableWithEntity<T1, T2, T3, T4, T5>

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

    Remarks

    This method may not be invoked more than once for each query description. Subsequent calls will override previous options, rather than adding to them. Use the bitwise OR operator '|' to combine multiple options.

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