F8 ReferencePool

June 27, 2025 · View on GitHub

license Unity Version Platform

Introduction (Simply press F8 to start game development without distractions)

Unity F8 ReferencePool Component
Efficient object pooling system for managing reusable game objects and components to minimize instantiation overhead.

  • Pool Management:
    • Acquire: Retrieve objects from pool
    • Release: Return objects to pool
    • Remove: Empty the pool

Plugin Installation (Requires Core Framework First)

Note! Built into → F8Framework Core: https://github.com/TippingGame/F8Framework.git
Method 1: Download files directly and import to Unity
Method 2: Unity → Menu Bar → Window → Package Manager → "+" → Add Package from git URL → Enter: https://github.com/TippingGame/F8Framework.git

Code Examples

    // Class implementing IReference interface for pool management
    public class AssetInfo : IReference
    {
        public void Clear()
        {
            
        }
    }

    void Start()
    {
        // Preload pool with 50 instances
        ReferencePool.Add<AssetInfo>(50);
        // Acquire an instance from pool
        AssetInfo assetInfo = ReferencePool.Acquire<AssetInfo>();
        
        // Return instance to pool (makes it available for reuse)
        ReferencePool.Release(assetInfo);
        // Clear all instances of this type from pool
        ReferencePool.RemoveAll(typeof(AssetInfo));
    }