Skip to main content

TerrainGen

24 tools in this family (folder Editor/Tools/TerrainGen/ in the bridge package). Effect: writes changes the project or the scene, read-only does not, destructive deletes or overwrites and the client asks before running it.

ToolEffectDescription
terrain_add_biomewritesRegister a biome graph weighted by weight. When the runtime has >=1 biome, the host graph is
terrain_add_nodewritesAdd a new node of a given kind to a graph. Kinds: perlin_noise, simplex_noise, ridged_noise,
terrain_apply_presetwritesReplace the contents of a graph asset with a baked preset.
terrain_configure_erosionwritesConfigure a hydraulic_erosion node's particle-droplet parameters (Beyer 2015 model).
terrain_configure_scatterwritesConfigure a scatter / forest / random_scatter node: density, distance, prototype index, etc.
terrain_connect_nodeswritesConnect an output port to an input port. Refuses cycles and port-type mismatches.
terrain_create_graphwritesCreate a new procedural terrain graph asset (GenGraph) at the given path.
terrain_export_graphwritesExport the graph to a JSON file (portable representation).
terrain_export_heightmapwritesExport the heightmap of a tile to a PNG. The encoding packs 16-bit precision into the R+G
terrain_generate_minimapwritesRender a top-down minimap PNG for a square block of tiles around (tile_x, tile_z). Each tile is
terrain_generate_river_networkwritesCompute the D8 flow-accumulation river network for the current heightmap of a tile and
terrain_generate_tilewritesSynchronously evaluate the graph for a single tile (x,z) and apply the result to a Unity Terrain.
terrain_get_graph_inforead-onlyReturn graph statistics: node count, connection count, list of output nodes, list of nodes
terrain_import_graphwritesImport a JSON graph (produced by terrain_export_graph) into a fresh asset. Reconstructs
terrain_import_heightmapwritesImport a PNG as the base of a graph: a new stamp node is added with the imported matrix
terrain_paint_heightwritesApply a height brush delta at a world position. Stamped onto the tile under the brush and
terrain_paint_splatwritesPaint a splatmap-layer alpha delta at a world position. Layer index refers to the splat_output
terrain_pin_tilewritesPin or unpin a tile so it survives camera-driven redeploy and skips regeneration.
terrain_remove_nodewritesRemove a node and every connection touching it.
terrain_set_node_paramwritesSet one or more parameters on a graph node. Parameter names depend on the node kind
terrain_set_seedwritesSet the graph's deterministic seed and propagate to the live runtime.
terrain_setup_infinitewritesEnable camera-tracked infinite-terrain mode. Tiles within generate_radius of the tracker
terrain_setup_terrainwritesSpawn a GameObject in the active scene with a TerrainGenerator component bound to the graph.
terrain_validate_graphread-onlyRun static analysis on the graph: cycle detection, orphan references, dangling inputs, and a