unity-terrain
Installation
SKILL.md
Unity Terrain Skills
Guardrails
Operating Mode (v1.9 three-tier):
- Approval (default): query skills (
terrain_get_info,terrain_get_height) run directly. Create/modify skills (terrain_create,terrain_set_height,terrain_set_heights_batch,terrain_add_hill,terrain_generate_perlin,terrain_smooth,terrain_flatten,terrain_paint_texture) are FullAuto — onMODE_RESTRICTED, run the grant protocol;/permission/grantexecutes the skill server-side and returns the result. - Auto / Bypass: SemiAuto and FullAuto run directly.
- This module contains no Delete / PlayMode / Reload /
RiskLevel="high"skills — nothing auto-classifies as forbidden. To remove a terrain delete the asset viaasset_delete(subject to its own forbidden rules).
Note: All sculpt/paint operations require an existing Terrain in the scene, or use
terrain_createto generate one.
DO NOT (common hallucinations):
terrain_set_texturedoes not exist → useterrain_paint_texturewith layer index and brush parametersterrain_add_tree/terrain_add_grassdo not exist → these require Unity Terrain tools or custom scriptsterrain_set_sizedoes not exist → terrain dimensions are set at creation viaterrain_createterrain_import_heightmap/terrain_set_heightsdo not exist → useterrain_set_heights_batchwith a 2D heights array ([z][x]values 0-1)