User Tools

Site Tools


preview:api:map_density_spawn_info

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
preview:api:map_density_spawn_info [2019/10/04 17:58] – [Density] polymorphgamespreview:api:map_density_spawn_info [2023/12/12 12:16] (current) – external edit 127.0.0.1
Line 3: Line 3:
 **Category**: Data **Category**: Data
  
 +//[[:annotations#cloneable|Cloneable]]//
  
 ===== Properties ===== ===== Properties =====
Line 9: Line 10:
  
 ==== DensityMap ==== ==== 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. 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**: ''[[preview:api:texture|TEXTURE]]''   * **Type**: ''[[preview:api:texture|TEXTURE]]''
-  * **Expected**: ''Asset ID''+  * **Expected**: ''asset ID''
  
 ---- ----
  
 ==== Density ==== ==== Density ====
-The distance between objects. Value can not be lower than 3+//[[:annotations#serialized|Serialized]]// 
-  * **Type**: ''Float''+ 
 +The distance between objects. Value can be between 0 and 1, with 0 at low density and 1 at high density. 
 + 
 +  * **Type**: ''[[preview:data-types#float|float]]'' 
 +  * **Expected**: ''float value''
   * **Default value**: ''1.f''   * **Default value**: ''1.f''
  
Line 23: Line 31:
  
 ==== PrefabConfigList ==== ==== PrefabConfigList ====
 +//[[:annotations#serialized|Serialized]]//
 +
 Multiple settings can be set for different prefabs, each with their own random weight. Multiple settings can be set for different prefabs, each with their own random weight.
-  * **Type**: ''List<[[preview:api:map_density_prefab_config|MAP_DENSITY_PREFAB_CONFIG]]>''+ 
 +  * **Type**: ''[[preview:data-types#list|list]]<[[preview: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**: ''[[preview:data-types#string|string]]'' 
 +  * **Expected**: ''string value''
  
  
preview/api/map_density_spawn_info.txt · Last modified: 2023/12/12 12:16 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki