Skip to main content

Path

An abstract class in Root.Township, Alta.Mechanisms.

Base class for a path a mechanism part moves along, such as StraightPath or BendPath. Used by Scrubber.

Constructors​

MemberWhat it is
protected Path()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Methods​

MemberWhat it is
abstract float GetProgress(Transform transform)Returns how far along the path (0 to 1) the given transform is.
abstract void SetTransform(Transform transform, float lerp)Moves the given transform to the point on the path at the given progress (0 to 1).

Used in​

Members of other types that take, return or hold a Path: