docs.unity3d.com
    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
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023