Skip to main content

ForestFill

A class in Root.Township, Alta.Forests.

Forest fill step that scatters objects on a grid across the forest, outside path nodes (or in open spaces).

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private static Logger loggerLogger for this class.
private float stepGrid spacing in metres.

Methods​

MemberWhat it is
protected override async Task GenerateInternal(LocationChunk chunk, InstructionSet instructions)Tests grid points in the chunk row by row on worker threads, raycasts the ground on the main thread and adds spawn instructions for points that pass.