simple object pooling implementation accessible through the dependency system and used in walker spawners for example
https://citybuilder.softleitner.com/manual
|
T | Request< T > (T prefab, Transform parent, System.Func< T, bool > check=null) |
|
void | Release (Component prefab, Component instance) |
|
T | Request< T > (T prefab, Transform parent, Func< T, bool > check=null) |
|
◆ Release()
void CityBuilderCore.ObjectPool.Release |
( |
Component | prefab, |
|
|
Component | instance ) |
|
inline |
◆ Request< T >()
T CityBuilderCore.ObjectPool.Request< T > |
( |
T | prefab, |
|
|
Transform | parent, |
|
|
System.Func< T, bool > | check = null ) |
|
inline |