Torus | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Torus

    A torus is a 3D shape formed by a small circle that rotates around a bigger circle. It usually looks like a circular ring, or a donut.

    Torus shapes

    A Default torus (smooth)

    B Torus with 180-degree horizontal circumference

    C Torus with 180-degree vertical circumference

    D Torus without smoothing

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

    Torus shape properties

    Property: Description:
    Rows Set the complexity of the Mesh, together with the Columns value. You can enter a value from 3 to 32. The higher the value, the smoother the shape, but at the cost of more polygons to calculate. The default value is 16.
    Columns Set the complexity of the Mesh, together with the Rows value. You can enter a value from 3 to 64. The higher the value, the smoother the shape, but at the cost of more polygons (and therefore more computation). The default value is 24.
    Define Inner / Out Radius Enable this option if you want to specify the value for the inner radius. Disable this option if you want to specify the value for the radius of the tube instead.

    When you enable this option, the Radius property becomes the Outer Radius property, and the Tube Radius property becomes the Inner Radius property.
    Outer Radius Set the amount of the outer radius in meters. Default value is 1.

    Note: This property is only available when the Define Inner / Out Radius property is enabled.
    Inner Radius Set the amount of the inner radius in meters. Valid values range from 0.0009999871 to the Outer Radius value. Default value is 0.4.

    Note: This property is only available when the Define Inner / Out Radius property is enabled.
    Radius Set the radius of the entire torus in meters. Default value is 1.

    Note: This property is only available when the Define Inner / Out Radius property is disabled.
    Tube Radius Set the radius of the tube itself in meters. Valid values range from 0.01 to the Radius value. The default value is 0.3.

    Note: This property is only available when the Define Inner / Out Radius property is disabled.
    Horizontal Circumference Set the degree of the torus's circumference. For example, if you set this value to 180 (as the B image demonstrates), it looks like someone cut half of the torus away (like leaving half of a donut). Default value is 360 (full torus).
    Vertical Circumference Set the degree of the tube's circumference. For example, if you set this value to 180 (as the C image demonstrates), it looks like a half-pipe. Default value is 360 (full tube).
    Smooth Enable this option to smooth the edges of the polygons (the 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