====== MAP_DENSITY_SPAWN_INFO ====== **Category**: Data //[[:annotations#cloneable|Cloneable]]// ===== Properties ===== ---- ==== DensityMap ==== //[[:annotations#serialized|Serialized]]// A grayscale texture that will be used to spawn prefabs. A white (or gray) pixel shows where a prefab will be spawned, a gray pixel will affect the scale of the object and nothing will be spawned at a black pixel. * **Type**: ''[[:api:texture|TEXTURE]]'' * **Expected**: ''asset ID'' ---- ==== Density ==== //[[:annotations#serialized|Serialized]]// The distance between objects. Value can be between 0 and 1, with 0 at low density and 1 at high density. * **Type**: ''[[:data-types#float|float]]'' * **Expected**: ''float value'' * **Default value**: ''1.f'' ---- ==== PrefabConfigList ==== //[[:annotations#serialized|Serialized]]// Multiple settings can be set for different prefabs, each with their own random weight. * **Type**: ''[[:data-types#list|list]]<[[:api:map_density_prefab_config|MAP_DENSITY_PREFAB_CONFIG]]>'' * **Expected**: ''list of MAP_DENSITY_PREFAB_CONFIG values'' ---- ==== PatchBeforeVersion ==== //[[:annotations#serialized|Serialized]]// These prefabs will be force-spawned in existing maps if the Map Version is smaller than 'Patch Before Version'. The Map Version is equal to the Mod Version when the map was last loaded. Format: \'X.Y.Z\' * **Type**: ''[[:data-types#string|string]]'' * **Expected**: ''string value''