GameObject Pooler
FreakLib.Pooling.DestroyChecker Class Reference

This is a class used by the Pool to check if a game object that belongs to the Pool is destroyed (which it shouldn't be). More...

Inheritance diagram for FreakLib.Pooling.DestroyChecker:

Detailed Description

This is a class used by the Pool to check if a game object that belongs to the Pool is destroyed (which it shouldn't be).

The DestroyChecker is a MonoBehaviour that the Pool will add to all pooled objects when run in edit mode. It implements Unitys OnDestroy method, and uses this to log an error to the console if the object has been destroyed instead of correctly returned to the Pool.

This will only be added when running in the Unity Editor.


The documentation for this class was generated from the following file: