Skip to main content

RandomScaleModifier

A class in Root.Township, the global namespace.

Forest fill modifier asset that gives each spawn a random uniform scale from a curve.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private AnimationCurve sizeCurveMaps a random 0 to 1 value to scale.

Methods​

MemberWhat it is
override void Filter(ForestFillCore.Setup setup, ref SpawnParameters point, ref float weight)Sets the spawn's scale to the curve value at a random 0 to 1 input. Replaces any earlier scale.