外观
继承 AbstractObjectPoolSystem<TKey, TObject> 并实现创建方法。对象通过 IPoolableObject 在 OnAcquire 初始化借出状态,在 OnRelease 清理,在 OnPoolDestroy 释放最终资源。
AbstractObjectPoolSystem<TKey, TObject>
IPoolableObject
OnAcquire
OnRelease
OnPoolDestroy
Acquire(key)
预热和容量依据实际创建成本选择。Godot 原生节点见节点池。