docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SplineMeshHandle<T>

    Creates a cylinder mesh along a spline.

    Inheritance
    object
    SplineMeshHandle<T>
    Implements
    IDisposable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEditor.Splines
    Assembly: solution.dll
    Syntax
    public class SplineMeshHandle<T> : IDisposable where T : ISpline
    Type Parameters
    Name Description
    T

    The type of ISpline.

    Constructors

    Name Description
    SplineMeshHandle()

    Creates a new mesh handle. This class implements IDisposable to clean up allocated mesh resources. Call Dispose() when you are finished with the instance.

    SplineMeshHandle(Material)

    Create a new mesh handle. This class implements IDisposable to clean up allocated mesh resources. Call Dispose() when you are finished with the instance.

    Properties

    Name Description
    material

    The material to render this mesh with. If null, a default material is used.

    Methods

    Name Description
    Dispose()

    Destroys the 3D mesh.

    Do(int, T, float, int)

    Draws a 3D mesh handle from a spline.

    Do(int, T, float, Color, int)

    Draws a 3D mesh handle from a spline.

    Do(T, float, int)

    Draws a 3D mesh from a spline.

    Do(T, float, Color, int)

    Draws a 3D mesh from a spline.

    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)