docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ToMesh

    ToMesh(in Collider)

    Converts a Collider to a Mesh.

    Declaration
    public static Mesh ToMesh(this in Collider collider)
    Parameters
    Type Name Description
    Collider collider

    The collider to convert to a mesh.

    Returns
    Type Description
    Mesh

    The created mesh.

    In This Article
    Back to top
    Copyright © 2023 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)