Loading...
Searching...
No Matches
CityBuilderCore.ObjectPool Class Reference

Detailed Description

simple object pooling implementation accessible through the dependency system and used in walker spawners for example

https://citybuilder.softleitner.com/manual

Inheritance diagram for CityBuilderCore.ObjectPool:
CityBuilderCore.IObjectPool

Public Member Functions

Request< T > (T prefab, Transform parent, System.Func< T, bool > check=null)
 
void Release (Component prefab, Component instance)
 
- Public Member Functions inherited from CityBuilderCore.IObjectPool
Request< T > (T prefab, Transform parent, Func< T, bool > check=null)
 

Member Function Documentation

◆ 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
Type Constraints
T :Component