docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Dispose

    Dispose()

    Disposes this EntityQuery instance.

    Declaration
    public void Dispose()
    Remarks

    Do not dispose EntityQuery instances accessed using GetEntityQuery(params ComponentType[]). Systems automatically dispose of their own entity queries.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if you attempt to dispose an EntityQuery belonging to a system.

    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)