Method GenerateArch
GenerateArch(PivotLocation, float, float, float, float, int, bool, bool, bool, bool, bool)
Creates a new arch shape.
Declaration
public static ProBuilderMesh GenerateArch(PivotLocation pivotType, float angle, float radius, float width, float depth, int radialCuts, bool insideFaces, bool outsideFaces, bool frontFaces, bool backFaces, bool endCaps)
Parameters
Type | Name | Description |
---|---|---|
PivotLocation | pivotType | Set the location of the shape's pivot (center or first corner). |
float | angle | Set the portion of a circle the arch takes up as an angle. |
float | radius | Set the distance from the origin to the furthest extent of the bounding box. |
float | width | Set the distance from the top of the arch to the inner radius. |
float | depth | Set the depth of the arch blocks. |
int | radialCuts | Set the number of blocks in the arch. |
bool | insideFaces | Set whether to render the inside faces. |
bool | outsideFaces | Set whether to render the outside faces. |
bool | frontFaces | Set whether to render the front faces. |
bool | backFaces | Set whether to render the back faces. |
bool | endCaps | Set to true to include the faces capping the ends of this arch. This value is ignored if the radius is 360 degrees. |
Returns
Type | Description |
---|---|
ProBuilderMesh | A new GameObject with a reference to the ProBuilderMesh component. |