An abstract class in Root.Township, the global namespace.
Base asset for filters in the forest fill spawner that adjust a candidate point and its weight before spawning. Subclasses fix T, for example SpawnModifierPoint.
Constructors
| Member | What it is |
|---|
protected SpawnModifier() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
| Member | What it is |
|---|
protected string safeName | The asset's name, cached in Initialize. |
Methods
| Member | What it is |
|---|
abstract void Filter(ForestFillCore.Setup setup, ref T point, ref float weight) | Changes the point and its spawn weight for the given fill setup. |
virtual void Initialize() | Caches the asset name in safeName. |