docs.unity3d.com
    Show / Hide Table of Contents

    Query window reference

    The Query window displays detailed information about a selected query.

    To open the Query window, open the Relationship tab in an Entity, System, or Component Inspector, and select the button next to a query. Unity then opens a window with information about the query's related Components and Entities.


    Query window button highlighted in the Relationships tab of an Entity Inspector.

    The Query window has two tabs:

    • Components: Displays a list of Components that the selected query searches for. It also displays the access rights to the Component (Read or Read & Write).
    • Entities: Displays a list of Entities that match the query.


    Query window, Component view (left), Entities view (right)

    The top of the tab displays the query number, which is the order in which the query is declared in the C# System definition. To see more information about any Component or Entity in this view, select it and the Inspector displays more information about it. To see information about the System associated with this query, click the icon next to the System name () which changes the selection to that System, and displays the System Inspector where possible.

    Additional resources

    • Entity Query user manual
    • System Inspector reference
    Back to top
    Terms of use
    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