Version 1.7 has been released!
- Added two new PlayMaker actions: AcquireGameObjectFromManager and ReleaseGameObjectToManager.
- Added
Add
and Remove
methods and a ComponentsToReset
property to PoolableMonoBehaviour, to allow programmatic modifications.
- Bug fixes for PUN integration scripts, and additional error logging.
The new PlayMaker actions allow acquiring and releasing using a pool manager rather than a specific pool, making Pure Pool even easier to use.
The changes to PoolableMonoBehaviour mean you can now dynamically change the components applied to a pooled GameObject at runtime, and still make use of the automatic resetting performed by PoolableMonoBehaviour. Just make sure to update the PoolableMonoBehaviour component by calling Add when you add a new component, and Remove when you remove one.
The updated PUN integration script fixes the following error that was occurring in version 1.6:
UnityException: get_isPlaying is not allowed to be called during serialization, call it from Awake or Start instead. Called from MonoBehaviour 'PunPoolingSetup' on game object 'PhotonConnect'.
Get it now from the Unity Asset Store!