Class PathEditing
- Namespace
- TDMaker.Editor
- Assembly
- TDMaker.Editor.dll
Undoable point operations that keep per-point lane widths and entry/exit indices in sync.
public static class PathEditing
- Inheritance
-
PathEditing
- Inherited Members
Methods
Delete(PathAuthoring, int)
Deletes a point; paths keep at least two points.
public static void Delete(PathAuthoring path, int index)
Parameters
pathPathAuthoringindexint
Insert(PathAuthoring, int, Vector2, string)
Inserts a local-space point at index.
public static void Insert(PathAuthoring path, int index, Vector2 local, string undoName)
Parameters
pathPathAuthoringindexintlocalVector2undoNamestring
Reverse(PathAuthoring)
Reverses the travel direction.
public static void Reverse(PathAuthoring path)
Parameters
pathPathAuthoring
SetWidth(PathAuthoring, int, float)
Sets a per-point lane width override (zero clears it). Caller records undo.
public static void SetWidth(PathAuthoring path, int index, float spacing)
Parameters
pathPathAuthoringindexintspacingfloat