IN javascript how do I get an obkect back after doing destroyobject() ?

Hello,

My main problem is like this (sorry if this is basic, I’m very new to Unity). I have a set of objects that are destroyed after I enter a particular objects collider. I do this by setting a static variable which is contained by all the objects.

My problem was, I want all the objects to respawn after 20 seconds i.e. all the objects that were destroyed should come back. Is there any method by which I can do this or is there any way by which I can make my original implementation easier to solve?

Thanks!

you’ll have to create new objects… because you destroyed them.

Or don’t destroy them in the first place and instead set active to false.