com.stemtales.objectpool
v1.0.1
Published
Generic object pool
Readme
Object Pool
What is the Object Pool?
This is a generic object pool that can be used to efficiently manage our memory, cut down on costly dynamic allocation and freeing of memory, and improve performance overall.
Addressables
The Object Pool uses the Addressables system. Addressable groups can not be save in packages, however.
When you install this package:
- Navigate to the Addressables Groups tab (Window > Asset Management > Groups)
- Add the folder that contains (or will contain) your ObjectPoolInitializationData objects
- Then create a new label called "ObjectPoolInitializationData" and add that label to your new group
An example of these initialization data objects can be found in Runtime > ScriptableObjects > ObjectPoolInitializationData in the package.
VFX
This package has additional support for VFX. Adding the "PoolableVFX" component to a VFX object will provide functionality for pooling it while taking into consideration its lifetime.
Documentation
Documentation can be found on Sharepoint where all package documentation can be found.
