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 revision Previous revision
preview:api:map_density_spawn_info [2019/10/04 17:58]
polymorphgames [Density]
— (current)
Line 1: Line 1:
-====== MAP_DENSITY_SPAWN_INFO ====== 
- 
-**Category**:​ Data 
- 
- 
-===== Properties ===== 
- 
----- 
- 
-==== DensityMap ==== 
-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]]''​ 
-  * **Expected**:​ ''​Asset ID''​ 
- 
----- 
- 
-==== Density ==== 
-The distance between objects. Value can not be lower than 3. 
-  * **Type**: ''​Float''​ 
-  * **Default value**: ''​1.f''​ 
- 
----- 
- 
-==== PrefabConfigList ==== 
-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]]>''​ 
- 
  
preview/api/map_density_spawn_info.1570226323.txt.gz ยท Last modified: 2019/10/04 17:58 by polymorphgames