@zimmed/prefab / Exports / PoolObject
• new PoolObject()
Constructor must take no arguments
• Readonly poolState: PoolState<PoolObject>
▸ Abstract onClean(): void
Deinitializer called when object is put back into the pool or freed from memory
void
▸ Abstract onInit(...args): void
Initializer for when object is spawned by the pool
| Name | Type |
|---|---|
...args |
any[] |
void