unity-terrain

Create, sculpt, and paint Unity Terrain heightmaps and texture layers.

Updated Aug 31, 2026
One-click install
npx skills add https://github.com/pikachu0310/codex-agent-ops-public --skill unity-terrain-pikachu0310
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-terrain
Source: https://github.com/pikachu0310/codex-agent-ops-public/tree/main/.agents/skills/unity-skills/skills/terrain
Command: npx skills add https://github.com/pikachu0310/codex-agent-ops-public --skill unity-terrain-pikachu0310

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building natural-looking terrain in Unity by hand is slow and error-prone. This Skill exposes a set of callable operations for creating Terrain objects, generating heightmaps with Perlin noise, sculpting hills, smoothing and flattening regions, and painting texture layers, all through structured skill calls instead of manual editor work. ## Core Features & Use Cases - Terrain Creation & Querying: Create Terrain GameObjects with TerrainData assets and inspect size, resolution, and layer information. - Procedural Generation & Sculpting: Generate natural terrain with Perlin noise, add smooth hills, flatten plateaus, smooth sharp edges, or batch-set heights from 2D arrays. - Texture Painting: Paint terrain texture layers at normalized positions with configurable brush size and strength. - Use Case: A level designer asks the AI to build a 200x200 terrain with rolling hills and a flat plateau for a spawn area; the Skill chains terrain_create, terrain_generate_perlin, and terrain_flatten to produce the result, with workflow undo/redo support. ## Quick Start Ask the AI to create a new Unity terrain and generate natural rolling hills on it using Perlin noise with a chosen scale and height multiplier.

Frequently Asked Questions about unity-terrain

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

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

Call terrain_generate_perlin after creating a terrain with terrain_create. Adjust scale for feature size, heightMultiplier for intensity, and octaves, persistence, and lacunarity for detail; a seed value makes results reproducible.

How do I add smooth hills to a Unity terrain?

Use terrain_add_hill with normalized X/Z position, radius, height, and smoothness parameters. It applies a natural falloff, and multiple calls with randomized positions create varied rolling terrain.

Can I set Unity terrain heights from a custom heightmap array?

Yes, terrain_set_heights_batch accepts a 2D float array indexed [z][x] with values from 0 to 1, plus startX and startZ pixel offsets. There is no terrain_import_heightmap skill, so batch setting is the supported path.

Does this skill support adding trees or grass to Unity terrain?

No, terrain_add_tree and terrain_add_grass do not exist in this module. Vegetation requires Unity Terrain tools or custom scripts; this module covers heightmaps and texture layer painting only.

Why does terrain_paint_texture fail on my terrain?

Painting requires terrain layers to already be configured on the terrain. Query available layers with terrain_get_info first, then pass a valid zero-based layerIndex to terrain_paint_texture.