Method GenerateCurvedStair
GenerateCurvedStair(PivotLocation, float, float, float, float, int, bool)
Creates a set of curved stairs.
Declaration
public static ProBuilderMesh GenerateCurvedStair(PivotLocation pivotType, float stairWidth, float height, float innerRadius, float circumference, int steps, bool buildSides)
Parameters
Type | Name | Description |
---|---|---|
PivotLocation | pivotType | Set the location of the shape's pivot (center or first corner). |
float | stairWidth | Set the width of the stairs. |
float | height | Set the height of the stairs. |
float | innerRadius | Set the radius from the center of the bounding box to the inner stair bounds. |
float | circumference | Set the amount of curvature in degrees. |
int | steps | Set the number of steps to build. |
bool | buildSides | Set this to true to build the side and back walls or false to build only the stair top and connecting planes. |
Returns
Type | Description |
---|---|
ProBuilderMesh | A new GameObject with a reference to the ProBuilderMesh component. |