Types:RandomObjectSpawner.SpawnData

From Resonite Wiki
Revision as of 08:57, 6 September 2021 by imported>ProbablePrime (ProbablePrime moved page Category:Types:RandomObjectSpawner.SpawnData to Types:RandomObjectSpawner.SpawnData)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
RandomObjectSpawner component as seen in the Scene Inspector, with a single SpawnData element added to Templates

Intoduction

The SpawnData type is used in the RandomObjectSpawner component to provide a mapping between a template slot, and a weight that influences the likelihood of a particular template slot being spawned.

Behavior

The default Weight of 0 will result in that template never being spawned. Higher Weight values relative to other slots will increase the likelihood of that slot being chosen, compared to slots with lower Weight values.