Skip to main content

SignPointPart

A class in Root.Township, the global namespace.

Generatable part for forest generation that turns a sign to point along the path towards one of the forest's entrance nodes.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private int entranceIndexIndex into the forest's node list of the node the sign points to.
private Transform signThe transform that gets rotated.

Methods​

MemberWhat it is
override void GenerateStatic(GenerationCore core, bool isModifyingTerrain)Pathfinds from this node to the chosen entrance and rotates sign to face the first step of that path.