Hello I have a procedurally generated map that is a square and I want to instantiate the borders of this map so that the player can’t escape the level imagine something like spelunky where every tile is destructible.
Atm I have a script that walk around my map and instantiate my tiles at each iteration but is is pretty inefficient because the object that instantiate my border style walk forward in the update so it is +1 each frame and it takes around 4/5 seconds to complete the square.
How can I make it more efficient ?
Thanks in advance