docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method WithOptions

    WithOptions(EntityQueryOptions)

    Set options for the current query.

    Declaration
    public EntityQueryBuilder WithOptions(EntityQueryOptions options)
    Parameters
    Type Name Description
    EntityQueryOptions options

    EntityQueryOptions flags to set for the current query

    Returns
    Type Description
    EntityQueryBuilder

    The builder object that invoked this method.

    Remarks

    You should not need to set these options for most queries.

    You should only call WithOptions once for each query description. Subsequent calls 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)