Class EditablePath | 2D Path | 3.0.2
docs.unity3d.com
    Show / Hide Table of Contents

    Class EditablePath

    Inheritance
    Object
    EditablePath
    Namespace: UnityEditor.U2D.Path
    Syntax
    [Serializable]
    public class EditablePath : IEditablePath, ISelectable<Vector3>

    Properties

    forward

    Declaration
    public Vector3 forward { get; set; }
    Property Value
    Type Description
    Vector3
    Implements
    IEditablePath.forward

    isOpenEnded

    Declaration
    public bool isOpenEnded { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    IEditablePath.isOpenEnded

    localToWorldMatrix

    Declaration
    public Matrix4x4 localToWorldMatrix { get; set; }
    Property Value
    Type Description
    Matrix4x4
    Implements
    IEditablePath.localToWorldMatrix

    pointCount

    Declaration
    public int pointCount { get; }
    Property Value
    Type Description
    Int32
    Implements
    IEditablePath.pointCount

    right

    Declaration
    public Vector3 right { get; set; }
    Property Value
    Type Description
    Vector3
    Implements
    IEditablePath.right

    selection

    Declaration
    public ISelection<int> selection { get; }
    Property Value
    Type Description
    ISelection<Int32>
    Implements
    IEditablePath.selection

    shapeType

    Declaration
    public ShapeType shapeType { get; set; }
    Property Value
    Type Description
    ShapeType
    Implements
    IEditablePath.shapeType

    undoObject

    Declaration
    public IUndoObject undoObject { get; set; }
    Property Value
    Type Description
    IUndoObject
    Implements
    IEditablePath.undoObject

    up

    Declaration
    public Vector3 up { get; set; }
    Property Value
    Type Description
    Vector3
    Implements
    IEditablePath.up

    worldToLocalMatrix

    Declaration
    public Matrix4x4 worldToLocalMatrix { get; }
    Property Value
    Type Description
    Matrix4x4

    Methods

    AddPoint(ControlPoint)

    Declaration
    public void AddPoint(ControlPoint controlPoint)
    Parameters
    Type Name Description
    ControlPoint controlPoint
    Implements
    IEditablePath.AddPoint(ControlPoint)

    Clear()

    Declaration
    public void Clear()
    Implements
    IEditablePath.Clear()

    GetPoint(Int32)

    Declaration
    public ControlPoint GetPoint(int index)
    Parameters
    Type Name Description
    Int32 index
    Returns
    Type Description
    ControlPoint
    Implements
    IEditablePath.GetPoint(Int32)

    InsertPoint(Int32, ControlPoint)

    Declaration
    public void InsertPoint(int index, ControlPoint controlPoint)
    Parameters
    Type Name Description
    Int32 index
    ControlPoint controlPoint
    Implements
    IEditablePath.InsertPoint(Int32, ControlPoint)

    RemovePoint(Int32)

    Declaration
    public void RemovePoint(int index)
    Parameters
    Type Name Description
    Int32 index
    Implements
    IEditablePath.RemovePoint(Int32)

    Select(ISelector<Vector3>)

    Declaration
    public bool Select(ISelector<Vector3> selector)
    Parameters
    Type Name Description
    ISelector<Vector3> selector
    Returns
    Type Description
    Boolean
    Implements
    ISelectable<T>.Select(ISelector<T>)

    SetPoint(Int32, ControlPoint)

    Declaration
    public void SetPoint(int index, ControlPoint controlPoint)
    Parameters
    Type Name Description
    Int32 index
    ControlPoint controlPoint
    Implements
    IEditablePath.SetPoint(Int32, ControlPoint)

    Extension Methods

    EditablePathExtensions.ToPolygon(IEditablePath)
    EditablePathExtensions.ToSpline(IEditablePath)
    EditablePathExtensions.CalculateLocalLeftTangent(IEditablePath, Int32)
    EditablePathExtensions.CalculateLeftTangent(IEditablePath, Int32)
    EditablePathExtensions.CalculateLocalRightTangent(IEditablePath, Int32)
    EditablePathExtensions.CalculateRightTangent(IEditablePath, Int32)
    EditablePathExtensions.GetPrevPoint(IEditablePath, Int32)
    EditablePathExtensions.GetNextPoint(IEditablePath, Int32)
    EditablePathExtensions.UpdateTangentMode(IEditablePath, Int32)
    EditablePathExtensions.UpdateTangentsFromMode(IEditablePath)
    EditablePathExtensions.SetTangentMode(IEditablePath, Int32, TangentMode)
    EditablePathExtensions.MirrorTangent(IEditablePath, Int32)
    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