docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SplineTool

    Base class from which all Spline tools inherit. Inherit SplineTool to author tools that behave like native spline tools. This class implements some common functionality and shortcuts specific to spline authoring.

    Inheritance
    object
    Object
    ScriptableObject
    EditorTool
    SplineTool
    SplineMoveTool
    SplineRotateTool
    SplineScaleTool
    Inherited Members
    EditorTool.OnToolGUI(EditorWindow)
    EditorTool.IsAvailable()
    EditorTool.targets
    EditorTool.target
    EditorTool.toolbarIcon
    EditorTool.gridSnapEnabled
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEditor.Splines
    Assembly: solution.dll
    Syntax
    public abstract class SplineTool : EditorTool

    Properties

    Name Description
    activeTool

    The current active SplineTool in use.

    handleOrientation

    The current orientation of the handles for the current spline tool.

    handleRotation

    The current rotation of the handle regarding the selection and the Handle Rotation configuration.

    pivotPosition

    The current position of the pivot regarding the selection.

    Methods

    Name Description
    OnActivated()

    Invoked after this EditorTool becomes the active tool.

    OnHandleOrientationChanged()

    Callback invoked when the handle rotation configuration changes.

    OnPivotModeChanged()

    Callback invoked when the pivot mode configuration changes.

    OnWillBeDeactivated()

    Invoked before this EditorTool stops being the active tool.

    UpdateHandleRotation()

    Updates the current handle rotation. This is usually called internally by callbacks. UpdateHandleRotation can be called to refresh the handle rotation after manipulating spline elements, for instance, such as rotating a knot.

    UpdatePivotPosition(bool)

    Updates current pivot position, usually called internally by callbacks. It can be called to refresh the pivot position after manipulating spline elements, for instance, such as moving a knot.

    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)