unity-terrain

Manage and modify Unity Terrain assets and heightmaps programmatically.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/Yuan-Zzzz/FrogRE --skill unity-terrain-yuan-zzzz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-terrain
Source: https://github.com/Yuan-Zzzz/FrogRE/tree/main/.codex/skills/unity-skills/skills/terrain
Command: npx skills add https://github.com/Yuan-Zzzz/FrogRE --skill unity-terrain-yuan-zzzz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates creation and manipulation of Unity Terrain assets, removing repetitive manual editor work when sculpting landscapes, editing heightmaps, painting texture layers, and applying large-batch modifications.

Core Features & Use Cases

  • Terrain creation & metadata: Create Terrain GameObjects with TerrainData and query size, resolution, layers, and instance metadata.
  • Heightmap sculpting & procedural generation: Read and set heights at coordinates, apply batch heightmaps, add smooth hills, generate natural terrain with Perlin noise, smooth and flatten regions for designer-friendly results.
  • Texture painting & workflow support: Paint terrain layers by index and integrate operations into undoable workflow sessions; ideal for procedural level generation, iterative terrain editing, and automated build pipelines.

Quick Start

Create a terrain named MyTerrain, generate Perlin hills at scale 20 with heightMultiplier 0.4, and smooth the central area.

Frequently Asked Questions about unity-terrain

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Unity terrain with Perlin noise programmatically?

You can generate Unity terrain with Perlin noise programmatically by passing scale and height multiplier parameters to apply natural, smooth procedural hills directly to a terrain heightmap. This automates natural terrain creation without manual sculpting.

Can I batch edit Unity terrain heightmaps using 2D arrays?

Yes, you can batch edit Unity terrain heightmaps by passing normalized coordinates and 2D height arrays to apply large-scale modifications. This removes repetitive manual editor work when sculpting landscapes or applying heightmap changes.

How do I paint texture layers on Unity terrain automatically?

To paint texture layers on Unity terrain automatically, you specify the terrain layer by index within an undoable workflow session. This integrates texture painting into procedural level generation and automated build pipelines.

Do I need an existing terrain in the scene to modify heightmaps?

You need an existing terrain in the scene to modify heightmaps, or you can create one first using terrain creation commands. The process queries terrain size, resolution, and layers, returning success status with terrain metadata.