Possible to make a room building application?

Excuse me if this thread is in the wrong section.
Hello,

I’m working on a senior project for school and we’re thinking about making a “room creator/generator” application/simulator (with some other things attached) with Unity . All of us are new to Unity (but not programming) and we’re wondering if there was a way to make this application possible. It’s difficult to find a tutorial for this because all the tutorials I find want us to make the room in unity first, then we walk in it. We want to make the actual room in the game/application.

Is this possible to do? Are there tutorials out there to make applications like this?

Thanks.

I cant speak to whether or not there are any good tutorials for it, but yes, it’s perfectly possible to do that. Are you looking to create a tileset assembler or to procedural generate the entire room? Both are possible with Unity, but obviously would require different approaches. It sounds from your post that you’re looking to go procedural all the way since you mentioned not making the room first in the editor (which is one of the ways to do it for a tileset).

If you’re already good on mesh generation (since you mentioned having some experience in programming) then you might want to give a look at THIS tutorial. It’s a great introduction to procedural mesh generation.

Unity had an example project that touches on this too, but I can’t seem to find it anywhere but my computer.

Hope that helps some, and welcome to Unity!

3 Likes

Yes, it is possible, but you’re unlikely to be able to find tutorial for this kind of things.

In unity it is very easy to spawn objects dynamically (via Instantiate() call), so you could prepare room “pieces” (wall, corner, items of furniturs) and then spawn them at runtime, making a room on some sort of grid.

It is also easy to create dynamic geometry via Mesh API, so you could generate a room geometry and then spawn it within the game. You will have to handle pathfinding (and possibly occlusion) on your own, though, because built-in pathfinding solution requires prebuilt static geometry.

So, yes, it can be done, but you’re unlikely to find tutorials about it.

2 Likes

If you mean the player creates the room, then what you’re looking for is a runtime level editor. It’s definitely possible, somebody made one here. It’d be a fairly advanced project I would say though (depending on the level of detail/variety you want to support); it might be difficult for people who are new to Unity.

Alternately, if you meant it creates a randomly generated room based on certain rules, then search for procedural interior generation. There are a lot of resources about it, but most of them aren’t specifically for Unity. Also not easy, but you could make a bare-bones one that was pretty simple, and add as much to it as time allowed.

2 Likes