docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class EditorSplineUtility

    Editor utility functions for working with Spline and SplineData<T>.

    Inheritance
    object
    EditorSplineUtility
    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 static class EditorSplineUtility

    Properties

    Name Description
    DefaultTangentMode

    Represents the default TangentMode used to place or insert knots. If the user does not define tangent handles, then the tangent takes the default TangentMode.

    Methods

    Name Description
    CopySplineDataIfEmpty(ISplineContainer, int, int, EmbeddedSplineDataType, string)

    Copy an embedded SplineData<T> collection to a new Spline if the destination does not already contain an entry matching the type and key.

    RegisterSplineDataChanged<T>(Action<SplineData<T>>)

    Use this function to register a callback that gets invoked once per-frame if any SplineData<T> changes occur.

    SetKnotPlacementTool()

    Sets the current active context to the SplineToolContext and the current active tool to the Draw Splines Tool (KnotPlacementTool)

    UnregisterSplineDataChanged<T>(Action<SplineData<T>>)

    Use this function to unregister SplineData<T> change callback.

    Events

    Name Description
    AfterSplineWasModified

    Invoked once per-frame if a spline property has been modified.

    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)