Method CreateShape
CreateShape(ShapeType, PivotLocation)
Creates a shape with default parameters.
In the Editor, the equivalent is the Shape tool.
Declaration
public static ProBuilderMesh CreateShape(ShapeType shape, PivotLocation pivotType = PivotLocation.Center)
Parameters
Type | Name | Description |
---|---|---|
ShapeType | shape | The ShapeType to create. |
PivotLocation | pivotType | Where the shape's pivot will be. |
Returns
Type | Description |
---|---|
ProBuilderMesh | A new GameObject with the ProBuilderMesh initialized to the primitve shape. |