docs.unity.cn
    Show / Hide Table of Contents

    Enum ShapeType

    This enum describes each primitive shape that ProBuilder can create by default. To get a primitive with default parameters, use one of these values when calling CreateShape(ShapeType, PivotLocation).

    Namespace: UnityEngine.ProBuilder
    Syntax
    public enum ShapeType

    Fields

    Name Description Value
    Cube

    Cube shape.


    0
    Stair

    Straight stairs shape.


    1
    CurvedStair

    Curved stairs shape.


    2
    Prism

    Prism shape.


    3
    Cylinder

    Cylinder shape.


    4
    Plane

    Plane shape with 2 subdivisions and 10x10 units size.


    5
    Door

    Door shape.


    6
    Pipe

    Pipe shape.


    7
    Cone

    Cone shape.


    8
    Sprite

    Sprite shape (1x1 quad).


    9
    Arch

    Arch shape (180 degrees).


    10
    Sphere

    Sphere shape. Sometimes called "icosphere", or "icosahedron".


    11
    Torus

    Torus shape.


    12
    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX
    on Wednesday, April 12, 2023
    Terms of use