Unclaimed Package Is this your package? Claim it to unlock full analytics and manage your listing.
Claim This Package

Install via UPM

Add to Unity Package Manager using this URL

https://www.pkglnk.dev/pools.git

README Markdown

Copy this to your project's README.md

Style
Preview
pkglnk installs badge
## Installation

Add **EB Pools** to your Unity project via Package Manager:

1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/pools.git
```

[![pkglnk](https://www.pkglnk.dev/badge/pools.svg?style=pkglnk)](https://www.pkglnk.dev/pkg/pools)

README

Welcome to Expresso Bits Pools 👋

Version Documentation License: MIT Twitter: ScriptsEngineer

Unity performance issues generating and destroying multiple objects? This simple library solves your problem in a simple way. With few steps your object can be reused several times, avoiding the garbage collector. Create Simple and Easy Pool of objects! This extension creates easy use of Pool with objects that are instantiated and destroyed, avoiding excessive use of memory and processing.

Features

✔️ Simple use, Change only 2 line of your code!

✔️ Interfaces for events.

✔️ Pooler component for Unity Events.

Usage

Simple change Instantiate/Destroy method for this.InstantianteInPool/this.DestroyInPool!.

Before

      Instantiate(prefab);
      ...
      Destroy(gameObject);

After

    this.InstantiateFromPool(prefab);
    ...
    this.DestroyInPool(gameObject);

Advanced Usages

For more advanced use, scriptable Pool can be created by Expresso Bits/Pools/Pool

Pool

In the code just use:

    pool.Instantiate();
    ...
    pool.Destroy();

Install

With Git Url

To install open Window > Package Manager and click on the + package icon and choose "Add package from git url" and type:

https://github.com/ExpressoBits/Pools.git

and you're done!

With OpenUPM

  1. Add openupm registry. Click on the menu Edit -> Project settings..., and add a scoped registry like so:

Name: OpenUPM

Url: https://package.openupm.com

Scopes:

com.openupm br.com.expressobits

  1. Close the project settings
  2. Open the package manager. Click on menu Window -> Package Manager and select "Packages: My Registries", select the latest version of EB Pools and click install
  3. You may come back to the package manager to unistall EB Pools or upgrade it.

Comments

No comments yet. Be the first!