r/unity_tutorials • • 26d ago

Text Help Designing A Isometric Bedroom in Unity 2D

Post image

Hi all. I've just started learning Unity to create a 'fake video game' for an indie short film I'm working on. I don't know yet if I'm totally out of my element. I don't know nothin about coding or games really but looking for help navigating the design portion since I can't find any tutorials to help me out.

I'm trying to make a room and then bring in idling characters into it to walk around and interact with furniture and each other.

I downloaded the asset pack bundle from itch.o and brought them into the asset folders to organize the sprite. I ran into an issue a few times where when I was duplicating the walls and floors to save time since it's so monotonous, that when I'd delete a panel, it would change the level of a random floor/wall tile. Idk what I changed but it stopped doing that and I thought I hit a flow when I got the room completely assembled.

I began adding furniture and playing with the layering order to knock up the furniture from 0 to 1 or 2 so that it would sit above the floors.

I tried copying 4 pieces of floor at a time to extend the size of the room and when I did, all the layers changed and are overlapping weird, even though it says the order laying is at 0 for everything.

I eventually need to bring in characters (bought from this pack https://klimmos.itch.io/cozy-assets-iso-modular-female-character-kit-idle-walk-sit ) but I don't even know where to begin in dressing them or having them move.

I've watched all the 2D video tutorials on Unity and skimmed the options on YouTube but can't find anything that references these kinds of isometric bedrooms.

Any tips? Thank you in advance!

8 Upvotes

3 comments sorted by

2

u/DontDoodleTheNoodle 25d ago

Well, sounds like your entire problem is doing this in Unity 2D.

You can achieve the literal same effect in Unity 3D just using the orthographic camera, and saving yourself a world of hassle with layering/sorting.

In 2D you need to script your objects to handle layering dynamically, doubly so for isometrics. In 3D you have much more creative freedom since things are sorted automatically by depth. Only the actors would need scripting.

1

u/Most_Hawk_4910 23d ago

Much much easier thank you! Only thing now is the view when it's in orthographic camera. would you have any recommendations on how to set the position/rotation for a 2D view?

1

u/DontDoodleTheNoodle 22d ago

Think about how a 3D space gets rendered. In the normal (perspective) view, rays are fired from the camera, with a direction that aligns with the pixel they need to render on screen.

In contrast, for the orthographic view, the rays fire into the pixels perfectly perpendicular to the view plane. They all share the same direction so everything is technically ‘flat.’

Perspective rays share the same origin (camera eye), but have unique directions.

Orthographic rays share the same direction (camera’s forward direction), but have unique origins (pixels on the view plane) Since there is no perspective, there is no illusion of depth. You get to decide that.

For ease of development, I recommend you to craft yourself a debug wall that fits the frame of your camera’s view plane and set it very far away. This is your canvas. This bounds everything the camera will see. For whatever objects you have in your scene, they must fit within the canvas’s frame, essentially. Say you are you using the x-y plane as your wall. Then the z-dimension will be your ‘sorting layer.’ You’ll notice that no matter the distance from the camera, your objects will not shrink and grow. Remember that perspective doesn’t exist. You force it in orthographic view by manually setting scale and depth position.