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
| Member | What it is |
|---|
PathEndsPart() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
5 private and internal fields
| Member | What it is |
|---|
private PathEndsPart.Arrangement arrangement | Which side goes towards the forest entrance, or random or symmetrical. |
private float distanceFromEnds | Backing field for DistanceFromEnds. |
private int entranceIndex | Index of the forest node treated as the entrance when choosing which end is which. |
private Transform sideA | The object placed at one end of the path. |
private Transform sideB | The object placed at the other end of the path. |
Properties
| Member | What it is |
|---|
float DistanceFromEnds { get; set; } | How far in from each end of the path the two sides are placed. |
Methods
| Member | What 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: