docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateCapsule

    CreateCapsule(double, double, int, int, bool)

    Create a new capsule

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public uint CreateCapsule(double radius, double height, int subdivisionLatitude = 16, int subdivisionLongitude = 16, bool generateUV = true)
    Parameters
    Type Name Description
    double radius

    Radius of the Capsule

    double height

    Height of the Capsule (excluding the two size of half spheres)

    int subdivisionLatitude

    Subdivision of the Capsule on the Latitude

    int subdivisionLongitude

    Subdivision of the Capsule (two half spheres) on the Longitude

    bool generateUV

    Generation of the UV

    Returns
    Type Description
    uint
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)