Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Type:RandomObjectSpawner.SpawnData: Difference between revisions

From Resonite Wiki
Alizard (talk | contribs)
m Remove "intoduction"
Alizard (talk | contribs)
m fix image scale
Line 1: Line 1:
[[File: RandomObjectSpawnerComponentWithSpawnData.png|frame|500px|<center> '''RandomObjectSpawner''' component as seen in the [[Scene Inspector]], with a single '''SpawnData''' element added to <code>Templates</code></center>]]
{{Infobox Component
|Image=RandomObjectSpawnerComponentWithSpawnData.png
|Name=RandomObjectSpawner
}}
The '''SpawnData''' type is used in the [[RandomObjectSpawner (Component)|RandomObjectSpawner]] component to provide a mapping between a template slot, and a weight that influences the likelihood of a particular template slot being spawned.
The '''SpawnData''' type is used in the [[RandomObjectSpawner (Component)|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 ==
== Behavior ==
The default <code>Weight</code> of 0 will result in that template never being spawned. Higher <code>Weight</code> values relative to other slots will increase the likelihood of that slot being chosen, compared to slots with lower <code>Weight</code> values.
The default <code>Weight</code> of 0 will result in that template never being spawned. Higher <code>Weight</code> values relative to other slots will increase the likelihood of that slot being chosen, compared to slots with lower <code>Weight</code> values.

Revision as of 23:42, 25 January 2025

Component image 
RandomObjectSpawner component as seen in the Scene Inspector

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.

Contents