This system will create floor tile at a certain radius keeping the player at the center. It will update the floor as the player moves creating new tiles or deleting them as needed. I have used this system in the game Boat Blitz.
Remainder: The code is not very efficient. Keeping the Spawn Radius below 100 is recommended. The less the better.
Two more system were also created along with to work better.
Not something new, but effective with system to work. The pooling system will create a fix amount of tiles at the start of game and will create more if need arise.
Not my creation. I was looking for a way to bake the light for my game Boat Blitz on prefabs. While searching on github. I found just what I needed for my game. Find more details here : Prefab Light mapping.