XPool icon indicating copy to clipboard operation
XPool copied to clipboard

[FEATURE] Pool Container

Open mackysoft opened this issue 2 years ago • 0 comments

Implementing a static container that contains the pool allows the pool to be shared. Must add the T Original { get; } property to the IUnityObjectPool<T>.

IPool<ParticleSystem> pool = ParticleSystemPoolContainer.Instance.GetPool(m_Original);
ParticleSystem ps = pool.Rent();

mackysoft avatar Mar 02 '22 12:03 mackysoft