Skip to content

Pool Prewarm

Game Objects » Pooling » Pool Prewarm

Description

Creates or makes sure an existing game object pool has enough instances

Parameters

Name Description
Game Object The Game Object reference is used as the template for the pool
Pool Size The size of the pool of game objects

Example 1

Pre-warming a Pool moves it to the DontDestroyOnLoad scene. This means its contents will never be destroyed even after loading new scenes. To delete a pre-warmed pool use the Pool Destroy instruction.

Keywords

Create New Initialize Game Object