Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Dispose()

Removes all pooled items and invokes the pool's action on destroy callback for each item in the pool.
Read time 1 minuteLast updated 6 days ago

Definition

public void Dispose()

Remarks

The action on destroy callback is the delegate passed to the constructor as the optional
actionOnDestroy
parameter.