SpawnParameters
A struct in Root.Township, Alta.Forests.
Where and what to spawn during forest generation. The constructor fills the spawn data with location attributes: elevation, slope, distance from path and from the forest border.
- Listed in World generation
- Derived types
SpawnModifierSpawnParameters
Constructors
| Member | What it is |
|---|---|
SpawnParameters(ForestGeneration forest, PointNormal pointNormal, SpawnData spawnData) | Creates a SpawnParameters from forest, pointNormal and spawnData. |
Fields
| Member | What it is |
|---|---|
Vector3 normal | Ground normal at the spawn point. |
Vector3 position | World position to spawn at. |
Object prefab | The prefab or asset to spawn. Null until set. |
Quaternion rotation | Spawn rotation. Identity by default. |
Vector3 scale | Spawn scale. One by default. |
SpawnData spawnData | Spawn data with the location attributes set. |
Used in
Members of other types that take, return or hold a SpawnParameters: