1.1.8 ā€¢ Published 3 years ago

br.com.expressobits.pools v1.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Welcome to Expresso Bits Pools šŸ‘‹

Version Publish to npm 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

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/EBPools.git

and you're done!

1.1.8

3 years ago

1.0.5

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago