Skip to main content

NodeMapModifier

An abstract class in Root.Township, Alta.Forests.

Base for a component that changes the forest generator's node map before it is used.

Constructors​

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

Properties​

MemberWhat it is
bool IsActiveCache { get; set; }Whether the component was active and enabled when the generator collected modifiers; inactive ones are skipped.

Methods​

MemberWhat it is
virtual Task FinishInitialize()Async setup hook run before modifying. Finishes at once by default.
abstract void Modify(ForestGeneration forest)Changes the forest's node map. Implement in subclasses.

Used in​

Members of other types that take, return or hold a NodeMapModifier: