Enum ShapeType
Describes each primitive ProBuilder can create by default. Pass to @"UnityEngine.ProBuilder.ShapeGenerator.CreateShape" to get a primitive with default parameters.
Namespace: UnityEngine.ProBuilder
Syntax
public enum ShapeType
Fields
Name | Description | Value |
---|---|---|
Cube | Cube shape. |
0 |
Stair | Stair shape. |
1 |
CurvedStair | Curved stairs shape. |
2 |
Prism | A prism shape. |
3 |
Cylinder | Cylinder shape. |
4 |
Plane | A 10x10 plane with 2 subdivisions. |
5 |
Door | Door shape. |
6 |
Pipe | Pipe shape. |
7 |
Cone | Cone shape. |
8 |
Sprite | A 1x1 quad. |
9 |
Arch | A 180 degree arch. |
10 |
Sphere | Sphere shape. Also called icosphere, or icosahedron. |
11 |
Torus | Torus shape. |
12 |