NodePool
Coding Style wiki
NodePool 是 PoolSystem 的簡易 GameObject 物件池組件 (MonoBehaviour),以 Queue (先進先出) 管理閒置物件,支持異步分散幀加載 (負載平衡)、自動增長 (Auto Put) 與最大數量限制 (Max Size);透過 Add Component -> OxGKit -> PoolSystem -> NodePool 掛載至場景節點上使用 (該 節點即為物件池的容器節點)。
| 命名空間 | OxGKit.PoolSystem |
| 類型 | public class NodePool : MonoBehaviour |
| 原始碼 | NodePool.cs |
using OxGKit.PoolSystem;
注意 分散幀加載基於 UniTask 實現,啟用時 Initialize 會異步分批建立物件,可透過 IsLoadFinished 確認完成時機。