SgtLandscapePrefabSpawner
This component can be added alongside a terrain to procedurally spawn prefabs on its surface.
MaskTex
This allows you to define the spawn area.
This texture should be Single Channel using either the R8 or Alpha8 formats. This texture should have read/write enabled.
InvertMask
Invert the mask, so 0 values become 255 values, and 255 values become 0 values
TriangleSize
Prefabs will spawn at the LOD level where triangles are approximately this size.
Count
The amount of prefabs that will be spawned per LOD chunk.
Seed
The random seed when procedurally spawning the prefabs.
ScaleMin
The spawned prefabs will have their localScale multiplied by at least this number.
ScaleMax
The spawned prefabs will have their localScale multiplied by at most this number.
Rotate
How should the spawned prefabs be rotated?
Offset
The spawned prefabs will have their position offset by this local space distance.
Last updated