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