Skip to main content

InsetModifier

A class in Root.Township, the global namespace.

Forest spawn modifier that sinks each spawn point into the ground by a random depth taken from a curve.

Constructors​

MemberWhat it is
InsetModifier()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

1 private and internal field
MemberWhat it is
private AnimationCurve insetCurve mapping a random 0 to 1 value to how far down to move the point.

Methods​

MemberWhat it is
override void Filter(ForestFillCore.Setup setup, ref PointNormal pointNormal, ref float weight)Lowers the point by the inset curve evaluated at a random value from the setup's random source.