Class PathEditorTool<T> | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class PathEditorTool<T>

    Inheritance
    System.Object
    PathEditorTool<T>
    Namespace: UnityEditor.U2D.Path
    Syntax
    public abstract class PathEditorTool<T> : EditorTool, IDuringSceneGuiTool where T : ScriptablePath
    Type Parameters
    Name Description
    T

    Properties

    enableSnapping

    Declaration
    public bool enableSnapping { get; set; }
    Property Value
    Type Description
    System.Boolean

    toolbarIcon

    Declaration
    public override GUIContent toolbarIcon { get; }
    Property Value
    Type Description
    GUIContent

    Methods

    GetCustomDrawer(UnityEngine.Object)

    Declaration
    protected virtual IDrawer GetCustomDrawer(UnityEngine.Object target)
    Parameters
    Type Name Description
    UnityEngine.Object target
    Returns
    Type Description
    IDrawer

    GetLinearTangentIsZero(UnityEngine.Object)

    Declaration
    protected virtual bool GetLinearTangentIsZero(UnityEngine.Object target)
    Parameters
    Type Name Description
    UnityEngine.Object target
    Returns
    Type Description
    System.Boolean

    GetPath(UnityEngine.Object)

    Declaration
    public T GetPath(UnityEngine.Object targetObject)
    Parameters
    Type Name Description
    UnityEngine.Object targetObject
    Returns
    Type Description
    T

    GetShape(UnityEngine.Object)

    Declaration
    protected abstract IShape GetShape(UnityEngine.Object target)
    Parameters
    Type Name Description
    UnityEngine.Object target
    Returns
    Type Description
    IShape

    Initialize(T, SerializedObject)

    Declaration
    protected virtual void Initialize(T path, SerializedObject serializedObject)
    Parameters
    Type Name Description
    T path
    SerializedObject serializedObject

    IsAvailable()

    Declaration
    public override bool IsAvailable()
    Returns
    Type Description
    System.Boolean

    OnActivate()

    Declaration
    protected virtual void OnActivate()

    OnCustomGUI(T)

    Declaration
    protected virtual void OnCustomGUI(T path)
    Parameters
    Type Name Description
    T path

    OnDeactivate()

    Declaration
    protected virtual void OnDeactivate()

    SetPath(UnityEngine.Object)

    Declaration
    public void SetPath(UnityEngine.Object target)
    Parameters
    Type Name Description
    UnityEngine.Object target

    SetShape(T, SerializedObject)

    Declaration
    protected abstract void SetShape(T path, SerializedObject serializedObject)
    Parameters
    Type Name Description
    T path
    SerializedObject serializedObject

    Extension Methods

    PathEditorToolExtensions.CycleTangentMode<T>(PathEditorTool<T>)
    PathEditorToolExtensions.MirrorTangent<T>(PathEditorTool<T>)
    Back to top
    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