Biome Tool
Advanced editor tool for procedural biome generation on terrain. Manages biome layers with terrain material or lasso-area zones, forest brush placement, exclusion zones, and mask-based vegetation dist
Advanced editor tool for procedural biome generation on terrain. Manages biome layers with terrain material or lasso-area zones, forest brush placement, exclusion zones, and mask-based vegetation distribution.
Key Features
- Biome Layers - Create layers based on terrain materials or lasso-drawn areas
- Forest Integration - Assign forest brush elements to biome zones (central, falloff, edge)
- Exclusion Zones - Define areas where vegetation should not spawn
- Blending Modes - Add, Replace, or Delete layer operations
- Mask Support - Import mask images for custom distribution patterns
- Random Base Masks - Procedural randomization of vegetation placement
Area Types
| Type | Value | Description |
|---|---|---|
| Lasso | 0 | Hand-drawn polygon area |
| Terrain Material | 1 | Area defined by painted terrain material |
Layer Types
| Type | Value | Description |
|---|---|---|
| Terrain | 0 | Terrain-material-based layer |
| Area | 1 | Lasso-area-based layer |
| Any | 2 | Applies to both types |
Forest Brush Zone Types
| Zone | Value | Description |
|---|---|---|
| Central | 1 | Core area of the biome zone |
| Falloff | 2 | Transition area between zones |
| Edge | 3 | Outer boundary of the zone |
Biome Processing Types
| Type | Value | Description |
|---|---|---|
| Material | 0 | Material-based placement |
| Lasso | 1 | Lasso-area-based placement |
| Field | 2 | Field-based placement |
Usage Notes
- Requires a
Forestobject in the scene - Uses
editor_roadRiverGuifor lasso drawing - Terrain materials populated from the active
TerrainBlock - Large file (~3800+ lines) with full ImGui interface
Functions
M.onExtensionLoaded()
Callback for extension loaded event.
M.onEditorInitialized()
Registers edit mode, tool window, custom field inspectors, and initializes biome data.
M.onEditorGui()
Main per-frame UI rendering and 3D visualization.
M.onEditorAfterSaveLevel()
Saves biome layer data to art/biomeTool/biomeTool.json and forest data.
M.onEditorToolWindowHide(windowName)
Switches to object select mode when biome tool window is hidden.
windowName(string)
M.onEditorToolWindowGotFocus(windowName)
Switches to biome edit mode when the tool window gets focus.
windowName(string)
See Also
- buildingEditor - Procedural building generation
Barriers Editor
Editor tool for selecting and managing barrier prefabs in levels. Provides visual 3D sphere display of barrier positions, two-column selection UI, and integration with the Race Editor for assigning ba
Building Editor
Experimental procedural building/city generation editor. Uses a modular architecture with separate world, UI, decal, region, and utility sub-modules. Supports hot-reload during development.