Skip to main content

CutoutPathEdgeFill

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​

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

Fields​

4 private and internal fields
MemberWhat it is
private CutoutPathModifier cutoutPathModifier whose node scores decide which paths get edging.
private float extraRadiusDistance beyond the path radius to place objects.
private static Logger loggerLogger for this class.
private float stepMetres between points along a path.

Methods​

MemberWhat 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.