+1
Answered

Instantiate from pool idea

cel 9 months ago in Game Creator updated by Marti (Lead Developer) 9 months ago 1

Could this action have an option to keep the prefab permanently in the scene (no duration), and have another action to destroy it from pool? 

this would avoid the garbage/issue with normal instantiate and destroy 

Unity version:
Game Creator version:
+1
Answered

Hi Cel;

A few months back we implemented this and is hiddenly used throughout the entire Game Creator ecosystem.

As for the Action, you can use the "Instantiate from Pool" Action. It will automatically generate a pool of objects for you that are reused. If you want more fine grain control over the pool, you can add the "Pool Object" component on your prefab you want to instantiate and set its lifetime and amount of pre-filled pool amount.

Cheers!