docs.unity.cn
    Show / Hide Table of Contents

    Class PathEditorTool<T>

    Inheritance
    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
    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
    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
    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
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, March 1, 2022
    Terms of use