A class in Root.Township, Alta.Forests.
Forest fill step that places objects along both sides of paths scored by a CutoutPathModifier, just outside the path radius.
Constructors
| Member | What it is |
|---|
CutoutPathEdgeFill() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
| Member | What it is |
|---|
private CutoutPathModifier cutoutPath | Modifier whose node scores decide which paths get edging. |
private float extraRadius | Distance beyond the path radius to place objects. |
private static Logger logger | Logger for this class. |
private float step | Metres between points along a path. |
Methods
| Member | What it is |
|---|
protected override Task GenerateInternal(LocationChunk chunk, InstructionSet instructions) | Walks each scored edge in the chunk in steps, places points either side and adds spawn instructions for those that pass. Seeded from UnityEngine.Random, so not repeatable. |