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

path PathAuthoring
index int

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

path PathAuthoring
index int
local Vector2
undoName string

Reverse(PathAuthoring)

Reverses the travel direction.

public static void Reverse(PathAuthoring path)

Parameters

path PathAuthoring

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

path PathAuthoring
index int
spacing float