User Tools

Site Tools


api:map_density_prefab_config

MAP_DENSITY_PREFAB_CONFIG

Category: Data

Cloneable

Properties


PrefabList

Serialized

List of prefabs that will be spawned with these settings.

  • Type: list<PREFAB>
  • Expected: list of asset IDs

RandomWeight

Serialized

The random weight of these settings. Any number over zero is accepted, what is important is the difference between all weights. Any Setting with a random weight lower or equal to zero will be ignored.

  • Type: float
  • Expected: float value
  • Default value: 1.f

OffsetSizeRange

Serialized

Each prefab is spawned in a grid then slightly and randomly moved. This value changes how strong that offset can be.


OrientationRange

Serialized

The orientation of the spawned prefab will be between Min and Max.


ScaleRange

Serialized

The scale of the spawned prefab will be between Min and Max.


ColorRange

Serialized

The color of the spawned prefab will be between Min and Max.

api/map_density_prefab_config.txt · Last modified: 2022/12/02 14:10 (external edit)