Skip to main content

ScaleWithScoreModifier

A class in Root.Township, the global namespace.

Forest fill spawn modifier that scales each spawn point by a curve of its weight (score). Created as a generation asset.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private AnimationCurve scoreToScaleCurve from weight to scale multiplier. Default goes from 0.5 at 0 to 1 at 1.

Methods​

MemberWhat it is
override void Filter(ForestFillCore.Setup setup, ref SpawnParameters point, ref float weight)Multiplies the point's scale by scoreToScale evaluated at the point's weight.