docs.unity3d.com
    Show / Hide Table of Contents

    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
    Back to top
    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