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