docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Build

    Build(ref SystemState)

    Create an EntityQuery owned by an ISystem's SystemState.

    Declaration
    public EntityQuery Build(ref SystemState systemState)
    Parameters
    Type Name Description
    SystemState systemState

    SystemState of the system that will own the EntityQuery.

    Returns
    Type Description
    EntityQuery

    An EntityQuery based on the constraints set in the EntityQueryBuilder

    Remarks

    The System owning the systemState object retains this EntityQuery and disposes it at the end of the System's lifespan.

    Build(SystemBase)

    Create an EntityQuery owned by an SystemBase.

    Declaration
    [ExcludeFromBurstCompatTesting("SystemBase is a managed class")]
    public EntityQuery Build(SystemBase systemBase)
    Parameters
    Type Name Description
    SystemBase systemBase

    System that will own the EntityQuery.

    Returns
    Type Description
    EntityQuery

    An EntityQuery based on the constraints set in the EntityQueryBuilder

    Remarks

    The SystemBase argument retains the EntityQuery, and disposes it at the end of that system's lifetime.

    Build(EntityManager)

    Create an EntityQuery owned by an EntityManager.

    Declaration
    public EntityQuery Build(EntityManager entityManager)
    Parameters
    Type Name Description
    EntityManager entityManager

    EntityManager that will own the EntityQuery.

    Returns
    Type Description
    EntityQuery

    An EntityQuery based on the constraints set in the EntityQueryBuilder.

    Remarks

    The EntityManager retains the EntityQuery, and disposes it at the end of that EntityManager's corresponding World's lifetime.

    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)