Method GenerateCone
GenerateCone(PivotLocation, float, float, int)
Creates a new cone shape.
Declaration
public static ProBuilderMesh GenerateCone(PivotLocation pivotType, float radius, float height, int subdivAxis)
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 generated cone. |
float | height | Set the height of the cone. |
int | subdivAxis | Set the number of subdivisions on the axis. |
Returns
Type | Description |
---|---|
ProBuilderMesh | A new GameObject with a reference to the ProBuilderMesh component. |