Pool

Object pooling subsystem for the Scriptable Factory system. Manages the lifecycle of IFactorable instances by tracking active and inactive objects, automatically instantiating new objects when the pool is exhausted.

Architecture

spinner

Object Lifecycle

spinner

Key Concepts

Concept
Description

Pool

Master list of all instantiated objects (active + inactive)

Active objects

Currently spawned and in-use objects

Inactive objects

Despawned objects available for reuse

Auto-expand

GetObject() automatically calls Factory.Instantiate() when no inactive objects are available

Classes

Class
Description

Object pool that tracks active/inactive IFactorable instances

See Also

Last updated