Method GenerateDoor
GenerateDoor(PivotLocation, float, float, float, float, float)
Creates a door shape to place into a wall structure. Only the faces that are visible inside the walls have faces.
Declaration
public static ProBuilderMesh GenerateDoor(PivotLocation pivotType, float totalWidth, float totalHeight, float ledgeHeight, float legWidth, float depth)
Parameters
Type | Name | Description |
---|---|---|
PivotLocation | pivotType | Set the location of the shape's pivot (center or first corner). |
float | totalWidth | Set the total width of the door. |
float | totalHeight | Set the total height of the door. |
float | ledgeHeight | Set the height between the top of the door frame and the top of the object. |
float | legWidth | Set the width of each leg on both sides of the door. |
float | depth | Set the distance between the front and back faces of the door object. |
Returns
Type | Description |
---|---|
ProBuilderMesh | A new GameObject with a reference to the ProBuilderMesh component. |