docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ScriptablePath

    Inheritance
    object
    Object
    ScriptableObject
    ScriptablePath
    GenericScriptablePath<T>
    Implements
    IEditablePath
    ISelectable<Vector3>
    IUndoObject
    Inherited Members
    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 class ScriptablePath : ScriptableObject, IEditablePath, ISelectable<Vector3>, IUndoObject

    Properties

    forward

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

    isOpenEnded

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

    localToWorldMatrix

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

    pointCount

    Declaration
    public int pointCount { get; }
    Property Value
    Type Description
    int

    right

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

    selection

    Declaration
    public ISelection<int> selection { get; }
    Property Value
    Type Description
    ISelection<int>

    shapeType

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

    undoObject

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

    up

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

    Methods

    AddPoint(ControlPoint)

    Declaration
    public virtual void AddPoint(ControlPoint controlPoint)
    Parameters
    Type Name Description
    ControlPoint controlPoint

    Clear()

    Declaration
    public virtual void Clear()

    GetPoint(int)

    Declaration
    public virtual ControlPoint GetPoint(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    ControlPoint

    InsertPoint(int, ControlPoint)

    Declaration
    public virtual void InsertPoint(int index, ControlPoint controlPoint)
    Parameters
    Type Name Description
    int index
    ControlPoint controlPoint

    RemovePoint(int)

    Declaration
    public virtual void RemovePoint(int index)
    Parameters
    Type Name Description
    int index

    Select(ISelector<Vector3>)

    Declaration
    public bool Select(ISelector<Vector3> selector)
    Parameters
    Type Name Description
    ISelector<Vector3> selector
    Returns
    Type Description
    bool

    SetPoint(int, ControlPoint)

    Declaration
    public virtual void SetPoint(int index, ControlPoint controlPoint)
    Parameters
    Type Name Description
    int index
    ControlPoint controlPoint

    Implements

    IEditablePath
    ISelectable<T>
    IUndoObject

    Extension Methods

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