Object over another

Sorry if its not the right category, but idk on what this is exactly.
My question- is there any way to make objects appear in a order ? just like in 2d games.
In sprites you can add a layer, or level, so a character would have always a higher priority, therefore appearing on top of the ground tiles.

So, i want to make it but in 3D, does UE4 or UE5 have any tools for that ?
Basically what I aim to do is make a window have a higher layer priority than the walls, so i can make a simple wall, and add a window anywhere inside the wall and the wall textures would not be affected, this would help a lot my modular level modeling and building, my solution for now is just make the windows stick outside but then i would not be able to make it translucent.

Thanks

I’m not sure if this is what you meant, but it sounds like what you need are booleans. I don’t know if there is a way of doing this in ue but you can do this in blender or most other dcc and import into unreal. You basically take your window mesh and your wall mesh and then cut the window shape out of the wall. So you end up with a hole in the wall, the size of the window and you can just slide it in there.

Thanks !! I will look tinto it, i tought doing it in UE4 would be possible bc then my textures would have a higher chance to not get messed up after all the unwrap and import to the engine.
But the way you explained is better, i guess if i dont change the way i unwrapped the model after making the cut will work fine.