https://github.com/bluepixeldev/refpool

RefPool is a lightweight, ScriptableObject-driven pooling system for Unity 6.0 and above. It enables clean, efficient reuse of GameObjects across scenes without relying on global registries.

https://github.com/bluepixeldev/refpool

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.6%) to scientific vocabulary

Keywords

plugin pool scriptableobject unity unity3d-plugin
Last synced: 5 months ago · JSON representation

Repository

RefPool is a lightweight, ScriptableObject-driven pooling system for Unity 6.0 and above. It enables clean, efficient reuse of GameObjects across scenes without relying on global registries.

Basic Info
  • Host: GitHub
  • Owner: BluePixelDev
  • License: mit
  • Language: C#
  • Default Branch: master
  • Homepage:
  • Size: 33.2 KB
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
plugin pool scriptableobject unity unity3d-plugin
Created about 1 year ago · Last pushed 10 months ago
Metadata Files
Readme License

README.md

RefPool

GitHub Repo stars GitHub last commit GitHub issues Unity Version

RefPool is a lightweight, ScriptableObject-driven pooling system for Unity 6.0 and above.
It enables clean, efficient reuse of GameObjects across scenes without relying on global registries.

Features

  • ScriptableObject-based pool references for cross-scene linking
  • Lazy pool initialization and automatic cleanup on unload
  • Efficient memory management through shared pooling
  • Supports runtime spawning with configurable options such as spawn rate, position overrides, and randomization
  • Clean integration with Unity’s component model
  • Extendable through custom PoolResource implementations for advanced pooling behaviors

Installation

Unity Package Manager (via Git URL)

  1. Open your Unity project
  2. Go to Packages/manifest.json
  3. Add the following line to the dependencies block:

json "com.bluepixeldev.refpool": "https://github.com/bluepixeldev/refpool.git"

Manual Import

Clone or download this repository and move the RefPool folder into your project's Assets directory.

Usage

Create a Pool Resource

  1. Right-click in the Project window
  2. Select Create > RefPool > Pool or Pool Group
  3. Assign the prefab and configure pool size, increment size, and other settings

Add a RefPoolSpawner

  1. Attach the RefPoolSpawner component to a GameObject
  2. Assign the PoolResource you created
  3. Configure spawn behavior as needed

Trigger Spawning

You can trigger pooled object spawning manually or automatically:

```csharp [SerializeField] private PoolSpawner spawner;

void SomeEventTrigger() { spawner.Spawn(); } ```

Extending with Custom Pool Behaviors

RefPool allows you to implement custom pooling logic by extending the PoolResource class. This enables advanced use cases such as dynamic pool resizing, custom initialization, or specialized cleanup logic.

Here’s an example of a custom PoolResource:

```csharp using UnityEngine;

namespace BP.RefPool { public class CustomPoolResource : PoolResource { public override void Initialize() { // Custom initialization logic }

    public override GameObject Get()
    {
        // Custom logic for retrieving a GameObject from the pool
        return null;
    }

    public override bool Release(GameObject gameObject)
    {
        // Custom logic for releasing a GameObject back to the pool
        return true;
    }
}

} ```

This flexibility allows you to tailor the pooling system to your specific project requirements.

Contributing

Pull requests and issues are welcome. If you encounter a bug or have a feature suggestion, please open an issue on GitHub.

Owner

  • Name: BluePixel
  • Login: BluePixelDev
  • Kind: user
  • Location: Czech Republic

A game dev. working on an FPS/Roguelike game, Re-Take. Set in the near future, the internet is under attack of a virus. Only you can stop it and regain control.

GitHub Events

Total
  • Watch event: 2
  • Push event: 2
  • Public event: 1
Last Year
  • Watch event: 2
  • Push event: 2
  • Public event: 1

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

package.json npm