- Home /
add a hole to a cube
I have a cube looking like a wall (1,3,0.1) and i want to add a windows to the wall, just a square hole in the wall for example on this positions: from X 0.2 to 0.8, from y 1.5 to 2, all the Z value so from 0 to 0.1)
then i want to sabe it like a resource in my project.. i have to do it on blender on something like that? cant i edit and add vertex easily for something simple as this?
Answer by Calum-McManus · Jan 15, 2014 at 03:55 PM
3 ways to do this:
1) Custom Shader that has a transparent section
2) Using a tool like Blender or 3DS Max to create it
3) Using multiple cubes to create the shape you want
Personally I would just download Blender (free) and do it from there, there are plenty of tutorials on YouTube of basic modelling
Answer by Zariyda · Jan 15, 2014 at 02:50 PM
You could make 4 shapes, put them together and apply the texture for each one of them. You should know Unity is not meant for modelling.
Answer by JoaoOliveira · Jan 15, 2014 at 02:47 PM
If you need it to be a unique mesh for some reason than the best option is probably a modeling tool.
If not, you can simply use more than one cube under the same empty game object. Something like this (not well aligned, but you get the idea):
And then you can save it as a prefab and reuse it all you want.
Answer by nesis · Jan 15, 2014 at 02:48 PM
There are modelling packages you can download for Unity, but for modelling generally you're best off doing it in an external application and bringing it in. This applies to most 3D game engines I've used (Unity3D, CryEngine, Unreal Engine).
If you're wanting simple geometry, why not just put 4 blocks together to form a wall with a window?
Answer by Ralstlin · Jan 15, 2014 at 03:38 PM
is not harder to place textures in something like that?
I'd say that is a good reason for using a modeling tool.
Your answer

Follow this Question
Related Questions
How to make and snap a hole in wall in run time 1 Answer
3rd Person Ladder/Wall Climb Script 1 Answer
Simple wall jump? 2 Answers
How to destroy the cube which I selected with the arrow key 2 Answers
Rigid bodies pushable 2 Answers