Skip to main content

AlignWithPath

A class in Root.Township, the global namespace.

Generation part that turns the object to face along its forest path, kept level.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private AlignWithPath.Hill hillWhich way to face: either, uphill or downhill.

Methods​

MemberWhat it is
override void GenerateStatic(GenerationCore core, bool isModifyingTerrain)Faces the object along the spawn edge's path (or the node's first path), flat on the ground, uphill or downhill as set.