Skip to content
This repository was archived by the owner on Aug 14, 2019. It is now read-only.

PoolableObject.cs

Erik edited this page Apr 25, 2019 · 5 revisions

Dependencies:
Configurable Fields:
  • None
Public Events:
  • None
Public Fields:
  • prefab - Prefab object used to create this gameObject
General Overview:

This script is attached to any gameObject that should be released to the ObjectPool upon death. The ObjectPool automatically adds a PoolableObject component to any objects it instantiates. When an object is disabled while having an active PoolableObject component it is added back to the ObjectPool automatically.

Clone this wiki locally