Skip to main content

RiverEdgeFill

A class in Root.Township, Alta.Forests.

Forest fill step that places objects along river banks.

Constructors​

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

Fields​

6 private and internal fields
MemberWhat it is
private float extraRadiusExtra distance from the river passed to the segments.
private bool isSpawningOnRiversUse normal river segments. Off means waterfalls only.
private bool isSpawningOnWaterfallsAlso use waterfall segments.
private static Logger loggerLogger for this class.
private RiverGenerator riverRiver generator to read edge segments from.
private float stepSpacing between points.

Methods​

MemberWhat it is
protected override async Task GenerateInternal(LocationChunk chunk, InstructionSet instructions)Takes points from river edge segments in the chunk, raycasts them and adds spawn instructions for those that pass.