docs.unity.cn
    Show / Hide Table of Contents

    Method CreateEntityQuery

    CreateEntityQuery(ComponentType[])

    Creates a EntityQuery from an array of component types.

    Declaration
    [NotBurstCompatible]
    public EntityQuery CreateEntityQuery(params ComponentType[] requiredComponents)
    Parameters
    Type Name Description
    ComponentType[] requiredComponents

    An array containing the component types.

    Returns
    Type Description
    EntityQuery

    The EntityQuery derived from the specified array of component types.

    See Also
    EntityQueryDesc

    CreateEntityQuery(EntityQueryDesc[])

    Creates a EntityQuery from an EntityQueryDesc.

    Declaration
    [NotBurstCompatible]
    public EntityQuery CreateEntityQuery(params EntityQueryDesc[] queriesDesc)
    Parameters
    Type Name Description
    EntityQueryDesc[] queriesDesc

    A queryDesc identifying a set of component types.

    Returns
    Type Description
    EntityQuery

    The EntityQuery corresponding to the queryDesc.

    CreateEntityQuery(in EntityQueryDescBuilder)

    Creates an EntityQuery from an EntityQueryDescBuilder.

    Declaration
    public EntityQuery CreateEntityQuery(in EntityQueryDescBuilder queriesDesc)
    Parameters
    Type Name Description
    EntityQueryDescBuilder queriesDesc

    A queryDesc identifying a set of component types.

    Returns
    Type Description
    EntityQuery

    The EntityQuery corresponding to the queryDesc.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use