- Home /
Separate object for every wall and floor or not?
For my project I am designing an office and am wondering what's the standard approach in terms of level design. I am creating the rooms in Blender, but I am wondering whether I should make walls as separate objects or have one object for all walls of a room?
Answer by ravenclarico · Jun 22, 2021 at 07:07 PM
there is no standard approach to level design. it depends on how your game interacts with walls and floors. that being said, if you are making a platformer, it may be useful to have them as separate objects so you can make small adjustments to individual walls/floors. however, for a game like pokemon where walls dont really matter as much, it would be more convenient to have them grouped together to have a less cluttered inspector. it all depends on what you're willing to put up with.
Thank you for your answer and information. I was thinking whether merging them in Blender could help performance-wise, if having them split up is not necessary. Say for example, merging two walls with the same corner at least saves you 2 vertexes.
Answer by Proliecan · Jun 23, 2021 at 09:36 AM
In terms of time management, you often want to re-use as many assets as possible if you are adding multiple levels of the same kind or have big scenes. Separating the walls (and other objects) would mean that you could quickly and easily create new levels from the parts you already have without leaving the Unity Editor. Since it doesn't really make much difference performancewise (as long as you are not adding a few thousand objects as once) , I would recommend using single objects and making Prefabs for the reused objects.
If you only need very few custom levels that are not to be extended at any point of your development process and too small to split into multiple Prefabs, you should probably one single object.