Class EditablePathController
Inheritance
EditablePathController
Assembly: Unity.2D.Path.Editor.dll
Syntax
public class EditablePathController : IEditablePathController
Properties
closestEditablePath
Declaration
public IEditablePath closestEditablePath { get; }
Property Value
editablePath
Declaration
public IEditablePath editablePath { get; set; }
Property Value
enableSnapping
Declaration
public bool enableSnapping { get; set; }
Property Value
snapping
Declaration
public ISnapping<Vector3> snapping { get; set; }
Property Value
Methods
AddClosestPath(float)
Declaration
public void AddClosestPath(float distance)
Parameters
Type |
Name |
Description |
float |
distance |
|
ClearClosestPath()
Declaration
public void ClearClosestPath()
ClearSelection()
Declaration
public void ClearSelection()
CreatePoint(int, Vector3)
Declaration
public void CreatePoint(int index, Vector3 position)
Parameters
MoveEdge(int, Vector3)
Declaration
public void MoveEdge(int index, Vector3 delta)
Parameters
MoveSelectedPoints(Vector3)
Declaration
public void MoveSelectedPoints(Vector3 delta)
Parameters
Type |
Name |
Description |
Vector3 |
delta |
|
RegisterUndo(string)
Declaration
public void RegisterUndo(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
RemoveSelectedPoints()
Declaration
public void RemoveSelectedPoints()
SelectPoint(int, bool)
Declaration
public void SelectPoint(int index, bool select)
Parameters
Type |
Name |
Description |
int |
index |
|
bool |
select |
|
SetLeftTangent(int, Vector3, bool, bool, Vector3, TangentMode)
Declaration
public void SetLeftTangent(int index, Vector3 position, bool setToLinear, bool mirror, Vector3 cachedRightTangent, TangentMode cachedTangentMode)
Parameters
SetRightTangent(int, Vector3, bool, bool, Vector3, TangentMode)
Declaration
public void SetRightTangent(int index, Vector3 position, bool setToLinear, bool mirror, Vector3 cachedLeftTangent, TangentMode cachedTangentMode)
Parameters
Implements