I started a project about a week ago of Terraria / Starbound-like game with procedurally generated side-scrolling world, and when it came to generating 2D worlds, there were two major options: Tilemaps and GameObejcts.
I started my project with tilemaps since they looked like the “right” option. A perfect perfect grid where all tiles snap into place and no clutter in the hierarchy with up to dozens of thousands of game objects was pretty convenient if I do say so myself.
But then the problems started coming out:
· For starters, as far as I know, there is no way to split these tiles into regions to manage them as chunks.
· There was also no information on how to unload tiles when out of camera (Occlusion culling) and meant that the whole map would have to be entirely loaded at one, defeating the whole purpose of choosing tilemaps over single-game objects for performance
If anyone has some experience regarding 2D procedural generation or tilemaps in general, it would be immensely helpful if you could let me know if such things (Chunk system and occlusion culling) can be done on a tilemap and how, or which option is better.
Thanks in advance for any contributors, your help is much appreciated :)