docs.unity.cn
    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(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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023