docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PathEditorTool<T>

    Inheritance
    object
    Object
    ScriptableObject
    EditorTool
    PathEditorTool<T>
    Inherited Members
    EditorTool.OnToolGUI(EditorWindow)
    EditorTool.targets
    EditorTool.target
    ScriptableObject.SetDirty()
    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.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEditor.U2D.Path
    Assembly: Unity.2D.Path.Editor.dll
    Syntax
    public abstract class PathEditorTool<T> : EditorTool where T : ScriptablePath
    Type Parameters
    Name Description
    T

    Properties

    enableSnapping

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

    toolbarIcon

    The icon and tooltip for this custom editor tool. If this function is not implemented, the toolbar displays the Inspector icon for the target type. If no target type is defined, the toolbar displays the Tool Mode icon.

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

    Methods

    GetCustomDrawer(Object)

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

    GetLinearTangentIsZero(Object)

    Declaration
    protected virtual bool GetLinearTangentIsZero(Object target)
    Parameters
    Type Name Description
    Object target
    Returns
    Type Description
    bool

    GetPath(Object)

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

    GetShape(Object)

    Declaration
    protected abstract IShape GetShape(Object target)
    Parameters
    Type Name Description
    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()

    Checks whether the custom editor tool is available based on the state of the editor.

    Declaration
    public override bool IsAvailable()
    Returns
    Type Description
    bool

    Returns true if the custom editor tool is available. Returns false otherwise.

    Overrides
    EditorTool.IsAvailable()

    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(Object)

    Declaration
    public void SetPath(Object target)
    Parameters
    Type Name Description
    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>)
    In This Article
    Back to top
    Copyright © 2025 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)