unity-terrain

Create, sculpt, and texture Unity terrain heightmaps through skill API calls.

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/ethanJPope/Our-Main-Hackathon-Game --skill unity-terrain-ethanjpope
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-terrain
Source: https://github.com/ethanJPope/Our-Main-Hackathon-Game/tree/main/.agents/skills/unity-skills/skills/terrain
Command: npx skills add https://github.com/ethanJPope/Our-Main-Hackathon-Game --skill unity-terrain-ethanjpope

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building terrain in Unity normally requires manual editor work with sculpting brushes and layer painting. This Skill exposes terrain creation, heightmap editing, and texture painting as callable operations so an AI agent can generate and modify terrain programmatically. ## Core Features & Use Cases - Terrain Creation: Create a Terrain GameObject with TerrainData, configurable width, length, height, and heightmap resolution. - Procedural Generation: Generate natural terrain with Perlin noise, add smooth hills with falloff, flatten plateaus, and smooth sharp edges. - Height & Texture Control: Set individual or batched heightmap values and paint terrain texture layers with brush parameters. - Use Case: Ask the agent to build a 200x200 terrain, generate rolling hills via Perlin noise with a fixed seed, then flatten a plateau at the center for a structure placement. ## Quick Start Create a Unity terrain named MyTerrain sized 200 by 200 and generate natural hills on it using Perlin noise.

Frequently Asked Questions about unity-terrain

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

FAQPage Schema
How do I create terrain in Unity programmatically?

Call terrain_create with a name, width, length, height, and heightmap resolution to spawn a Terrain GameObject with a TerrainData asset. It returns the instance ID, asset path, size, and position for follow-up operations.

How to generate realistic terrain with Perlin noise in Unity?

Use terrain_generate_perlin with scale, heightMultiplier, octaves, persistence, and lacunarity parameters to produce natural-looking landscapes. Pass a fixed seed value to make the generated terrain reproducible across runs.

Can I set Unity terrain heights in bulk instead of one point at a time?

Yes, terrain_set_heights_batch accepts a start pixel coordinate and a 2D heights array indexed as [z][x] with values from 0 to 1. It modifies the entire rectangular region in one call and reports the total points modified.

Does this support adding trees or grass to Unity terrain?

No, terrain_add_tree and terrain_add_grass do not exist in this module. Trees and grass details require Unity Terrain editor tools or custom scripts; this module only handles heightmaps and texture layer painting.

Why does terrain_paint_texture fail on my terrain?

Painting requires terrain layers to already be configured on the TerrainData. Call terrain_get_info first to check terrainLayerCount and available layer indices, then pass a valid 0-based layerIndex to terrain_paint_texture.