Level/scene size planning

This may have been answered before but I lack the vocabulary to know what I’d be looking for.

If I wanted to lay out a large scene, say like a side-scrolly platformy thing like a whole level of Mario 3, can I put all the assets, art, etc. into the scene? It seems like I’d have to worry about all those sprites in memory when only a small portion are ever actually on screen at any given time. Surely this is a solved problem. I’m curious to know how it is solved so I can design my game and levels properly.

Thanks in advance.

Yes you certainly can. I’ve tested platformer levels larger than mario 3 levels on iphone 3gs and they work fine. I do spawn enemies as the player approaches, so there are not tons of enemies all over the map, but even this might not be necessary. Unity is very performant. I would recommend not worrying about this until it becomes an issue.

Thanks for the reassurance. I’m not trying to fall into the trap of ‘premature optimization’ but I fret about wasting tons of time to reach a dead-end. Thanks for the response; I can now move ahead worry-free.

Glad to help! I understand what you mean, I was worried about the same thing.

One other thing I thought to mention, the scene files will increase in size as you add more level geometry and this will effect the total size of your game. Still, I’ve added a lot of objects, meshes etc and the scenes are only a couple megabytes.