Cylinder | ProBuilder | 4.3.1
docs.unity3d.com
    Show / Hide Table of Contents

    Cylinder

    A cylinder is a shape with long straight sides and two circular (or roughly circular) ends, like a tube. They have a radius and a height.

    Cylinder shapes

    A Default cylinder shape

    B Cylinder without the smoothing

    C Cylinder with a height of 3 and 16 sides

    D Cylinder with a radius of 4 and 10 subdivisions

    You can customize the shape of a cylinder with these shape properties:

    Cylinder shape properties

    Property: Description:
    Radius Set the radius (width) of the cylinder in meters. The default value is 0.5. The minimum value is 0.01.
    Number of Sides Set the number of sides for the cylinder. The more sides you use (relative to the size of the Radius), the smoother the sides of the cylinder become. The default value is 8. Valid values range from 4 to 48.
    Height Set the height of the cylinder in meters. The default value is 1.
    Height Segments Set the number of divisions to use for the height of the cylinder. For example, a value of 3 produces 4 faces on every side of the cylinder. The default value is 0. Valid values range from 0 to 48.
    Smooth Enable this option to smooth the edges of the polygons. This is enabled by default.
    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