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.
- Listed in Global namespace: S
- Inherits or implements
SpawnModifierSpawnParameters - Derived types
ScaleWithScoreModifier.Create - Nested types
Create
Constructors
| Member | What it is |
|---|---|
ScaleWithScoreModifier() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
1 private and internal field
Methods
| Member | What 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. |