Skip to main content

FillSet

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

Base ScriptableObject for a forest fill or paint set: a set of spawn modifiers plus the range the random fail score is picked from.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private float maximumFailScoreBacking field for MaximumFailScore, default 1.
private float minimumFailScoreBacking field for MinimumFailScore.

Properties​

MemberWhat it is
float MaximumFailScore { get; }Highest random fail score (0 to 1) a point can roll.
float MinimumFailScore { get; }Lowest random fail score (0 to 1) a point can roll. Higher makes spawning rarer.
abstract SpawnModifiers SpawnModifiers { get; }The modifier chain each candidate point runs through to decide whether, and how, something spawns there.