Unit Reference InitializePoolNode - RealityStop/Bolt.Addons.Community GitHub Wiki

InitializePoolNode

image

The Initialize Pool node sets up a new object pool for a specified prefab.
It allows configuring the initial pool size and optionally assigning a custom parent GameObject for organizational purposes.

Properties

  • CustomParent : If enabled, lets you specify a GameObject to act as the parent for the pool. If disabled, a new parent GameObject is created automatically.

Input Ports

  • Enter : The control flow input to trigger the initialization of the pool.
  • Prefab : The GameObject to be pooled.
  • InitialPoolSize : The initial number of objects in the pool.
  • parent : Optional parent GameObject for the pool objects (only active if CustomParent is true).

Output Ports

  • Initialized : Triggered after the pool has been successfully created.
  • ObjectPool : The resulting object pool instance.
⚠️ **GitHub.com Fallback** ⚠️