docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ColliderExtensions

    Utility functions acting on colliders.

    Inheritance
    object
    ColliderExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Physics.Extensions
    Assembly: Unity.Physics.dll
    Syntax
    public static class ColliderExtensions

    Methods

    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 © 2024 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)