A special C# plugin to spawn your maps multiple times depending on the size and type of the map.
First of all when the player moves and reach the half of the map it automatically instantiate a new map
After the specified time runs out, the old maps are destroyed
Simply clone the repo and use the version you need from the scripts given, attach the script to your GameObject and load the specific map that you want to spawn every time, you can freely choose the other parameters of spawn options.
- Attach the MapSpawner script to your mapSpawner GameObject
- Create a prefab from your map.
- Attach the prefab to the Old Map To Delete.
- Attach the Map in Scene to the New Map To Spawn.
- Attach your Player to the script.
- Set the time to delete. Enjoy!