Ultimate Pooling Scripting Reference
| IPoolReceiver Methods |
The IPoolReceiver type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
|
OnDespawned |
Called when an object is about to be returned to the pool.
Note that this method will not be called when the object is destroyed.
|
|
OnSpawned |
Called when an object has been spawned from the pool.
This event allows the state of the object to be reset so it can be treaded as a newly created object.
Note that this method will not be called when the object is first created.
|
See Also