Skip to content
/ JDPool Public

Simple object pooling for use with Unity/Futile 2D Framework.

License

Notifications You must be signed in to change notification settings

ismyhc/JDPool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

JDPool

Simple object pooling for use with Unity/Futile 2D Framework.

Futile 2D Framework for Unity

Interface

The class in which you want to pool should adhere to the IJDPoolable interface. You should reset any variables in OnItemFree()

void OnItemFree();

Initialize

public JDPool<ObjectToPool> objectPool = new JDPool<ObjectToPool>(() => new ObjectToPool());

Use

var pooledObject = objectPool.GetItem();

Free

objectPool.FreeItem(pooledObject);

About

Simple object pooling for use with Unity/Futile 2D Framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages