Method GeneratePipe
GeneratePipe(PivotLocation, float, float, float, int, int)
Creates a new pipe shape.
Declaration
public static ProBuilderMesh GeneratePipe(PivotLocation pivotType, float radius, float height, float thickness, int subdivAxis, int subdivHeight)
Parameters
Type | Name | Description |
---|---|---|
PivotLocation | pivotType | Set the location of the shape's pivot (center or first corner). |
float | radius | Set the radius of the pipe. |
float | height | Set the height of the pipe. |
float | thickness | Set the thickness of the walls. |
int | subdivAxis | Set the number of subdivisions on the axis. |
int | subdivHeight | Set the number of subdivisions on the Y-axis. |
Returns
Type | Description |
---|---|
ProBuilderMesh | A new GameObject with a reference to the ProBuilderMesh component. |