- Home /
how to add windows and door in procedural cube?
i am making a procedural building whose width height and length i can control using parameters. now i have made a procedural cube whose length and height and width i can control but now problem is how to add windows in that cube. the default height of cube is 8f now i want to add two windows and i also want that when i change the height of cube to 16f then there should be four windows like two windows for first floor and two windows for second floor and so on.. please help.
What exactly are you having trouble with? You already know how to create a mesh from code, so for windows and doors you just need to add more vertices and triangles in the right positions.
Your answer
![](https://koobas.hobune.stream/wayback/20220612133052im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Many objects slow down Unity Scene View 2 Answers
Procedural Mesh From Random List Of Veritces 2 Answers
How to fill out a procedurally generated mesh with quads of varying sizes? 0 Answers
From Height maps to Marching cubes 0 Answers
How to render procedurally generated mesh to be rendered as 2 sided? 1 Answer