docs.unity3d.com
    Show / Hide Table of Contents

    Method CreateEntityQuery

    CreateEntityQuery(ComponentType[])

    Creates a EntityQuery from an array of component types.

    Declaration
    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
    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.

    In This Article
    • CreateEntityQuery(ComponentType[])
    • CreateEntityQuery(EntityQueryDesc[])
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023