文档

Unity Engine

Unity Engine

Clear()

Removes all pooled items and invokes the pool's action on destroy callback for each item in the pool.
阅读时间1 分钟最后更新于 1 个月前

Definition

public void Clear()

Remarks

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