Interface IEditablePathController | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IEditablePathController

    Namespace: UnityEditor.U2D.Path
    Syntax
    public interface IEditablePathController

    Properties

    closestEditablePath

    Declaration
    IEditablePath closestEditablePath { get; }
    Property Value
    Type Description
    IEditablePath

    editablePath

    Declaration
    IEditablePath editablePath { get; set; }
    Property Value
    Type Description
    IEditablePath

    enableSnapping

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

    snapping

    Declaration
    ISnapping<Vector3> snapping { get; set; }
    Property Value
    Type Description
    ISnapping<Vector3>

    Methods

    AddClosestPath(Single)

    Declaration
    void AddClosestPath(float distance)
    Parameters
    Type Name Description
    System.Single distance

    ClearClosestPath()

    Declaration
    void ClearClosestPath()

    ClearSelection()

    Declaration
    void ClearSelection()

    CreatePoint(Int32, Vector3)

    Declaration
    void CreatePoint(int index, Vector3 position)
    Parameters
    Type Name Description
    System.Int32 index
    Vector3 position

    MoveEdge(Int32, Vector3)

    Declaration
    void MoveEdge(int index, Vector3 delta)
    Parameters
    Type Name Description
    System.Int32 index
    Vector3 delta

    MoveSelectedPoints(Vector3)

    Declaration
    void MoveSelectedPoints(Vector3 delta)
    Parameters
    Type Name Description
    Vector3 delta

    RegisterUndo(String)

    Declaration
    void RegisterUndo(string name)
    Parameters
    Type Name Description
    System.String name

    RemoveSelectedPoints()

    Declaration
    void RemoveSelectedPoints()

    SelectPoint(Int32, Boolean)

    Declaration
    void SelectPoint(int index, bool select)
    Parameters
    Type Name Description
    System.Int32 index
    System.Boolean select

    SetLeftTangent(Int32, Vector3, Boolean, Boolean, Vector3, TangentMode)

    Declaration
    void SetLeftTangent(int index, Vector3 position, bool setToLinear, bool mirror, Vector3 cachedRightTangent, TangentMode cachedTangentMode)
    Parameters
    Type Name Description
    System.Int32 index
    Vector3 position
    System.Boolean setToLinear
    System.Boolean mirror
    Vector3 cachedRightTangent
    TangentMode cachedTangentMode

    SetRightTangent(Int32, Vector3, Boolean, Boolean, Vector3, TangentMode)

    Declaration
    void SetRightTangent(int index, Vector3 position, bool setToLinear, bool mirror, Vector3 cachedLeftTangent, TangentMode cachedTangentMode)
    Parameters
    Type Name Description
    System.Int32 index
    Vector3 position
    System.Boolean setToLinear
    System.Boolean mirror
    Vector3 cachedLeftTangent
    TangentMode cachedTangentMode
    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