Skip to main content

PathEndsPart

A class in Root.Township, the global namespace.

Generatable part that places two objects at the ends of a forest path edge during generation, facing along the path.

Constructors​

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

Fields​

5 private and internal fields
MemberWhat it is
private PathEndsPart.Arrangement arrangementWhich side goes towards the forest entrance, or random or symmetrical.
private float distanceFromEndsBacking field for DistanceFromEnds.
private int entranceIndexIndex of the forest node treated as the entrance when choosing which end is which.
private Transform sideAThe object placed at one end of the path.
private Transform sideBThe object placed at the other end of the path.

Properties​

MemberWhat it is
float DistanceFromEnds { get; set; }How far in from each end of the path the two sides are placed.

Methods​

MemberWhat it is
override void GenerateStatic(GenerationCore core, bool isModifyingTerrain)Places sideA and sideB at the ends of the forest edge being spawned. Only runs when the spawn data is forest node map data.

Used in​

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