docs.unity3d.com
    Show / Hide Table of Contents

    Class SplineMeshHandle<T>

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

    Constructors

    SplineMeshHandle()

    Declaration
    public SplineMeshHandle()

    Methods

    Dispose()

    Declaration
    public void Dispose()
    Implements
    IDisposable.Dispose()

    Do(T, Single, Int32)

    Draws a 3D mesh from a spline.

    Declaration
    public void Do(T spline, float size, int resolution = 10)
    Parameters
    Type Name Description
    T spline

    The target spline.

    Single size

    The width to use for the spline mesh.

    Int32 resolution

    The resolution to use for the mesh, defines the number of segments per unit with default value of DrawResolutionDefault.

    Do(T, Single, Color, Int32)

    Draws a 3D mesh from a spline.

    Declaration
    public void Do(T spline, float size, Color color, int resolution = 10)
    Parameters
    Type Name Description
    T spline

    The target spline.

    Single size

    The width to use for the spline mesh.

    Color color

    The color to use for the spline mesh in normal mode.

    Int32 resolution

    The resolution to use for the mesh, defines the number of segments per unit with default value of DrawResolutionDefault.

    Do(Int32, T, Single, Int32)

    Draws a 3D mesh handle from a spline.

    Declaration
    public void Do(int controlID, T spline, float size, int resolution = 10)
    Parameters
    Type Name Description
    Int32 controlID

    The spline mesh controlID.

    T spline

    The target spline.

    Single size

    The width to use for the spline mesh.

    Int32 resolution

    The resolution to use for the mesh, defines the number of segments per unit with default value of DrawResolutionDefault.

    Do(Int32, T, Single, Color, Int32)

    Draws a 3D mesh handle from a spline.

    Declaration
    public void Do(int controlID, T spline, float size, Color color, int resolution = 10)
    Parameters
    Type Name Description
    Int32 controlID

    The spline mesh controlID.

    T spline

    The target spline.

    Single size

    The width to use for the spline mesh.

    Color color

    The color to use for the spline mesh in normal mode.

    Int32 resolution

    The resolution to use for the mesh, defines the number of segments per unit with default value of DrawResolutionDefault.

    Back to top
    Terms of use
    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