docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method WithOptions

    WithOptions(EntityQueryOptions)

    Specify your own EntityQueryOptions.

    Declaration
    public QueryEnumerable<T1, T2> WithOptions(EntityQueryOptions options)
    Parameters
    Type Name Description
    EntityQueryOptions options

    The options for this query

    Returns
    Type Description
    QueryEnumerable<T1, T2>

    QueryEnumerable, which allows enumerating over all Aspects, RefRO, RefRW, EnabledRefRO and EnabledRefRW components 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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)