Class ScenePool
Manages a scene-specific local pool of GameObjects to facilitate efficient object reuse.
Implements
Inherited Members
Namespace: GUPS.EasyPooling
Assembly: cs.temp.dll.dll
Syntax
public class ScenePool : AGamePool<ScenePool>, IPool
Remarks
The ScenePool class extends the functionality of the AGamePool<T> base class and serves as a specialized pool manager for GameObjects within a specific scene. It implements a local pool that enables the efficient reuse of GameObject instances, reducing the overhead of constant object instantiation and destruction.
Scene pools are designed to be scene-specific, meaning that they persist only throughout the duration of a single scene. This behavior is particularly useful when certain GameObjects need to be recycled within the context of a specific scene without impacting the overall application state.
Properties
IsPersistent
The Scene Pool is only persistent throughout the scene.
Declaration
public override bool IsPersistent { get; }
Property Value
Type | Description |
---|---|
System.Boolean |