unity-terrain

Create and sculpt Unity Terrain heightmaps, generate Perlin noise landscapes, and paint texture layers.

2|Updated May 18, 2026
One-click install
npx skills add https://github.com/pcone-mm/NewFPG --skill unity-terrain-pcone-mm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-terrain
Source: https://github.com/pcone-mm/NewFPG/tree/main/.agents/skills/unity-skills/skills/terrain
Command: npx skills add https://github.com/pcone-mm/NewFPG --skill unity-terrain-pcone-mm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building natural-looking terrain in Unity by hand is slow and error-prone, especially when sculpting heightmaps, smoothing regions, or painting texture layers through the editor. This Skill exposes programmatic terrain operations so an AI assistant can create TerrainData, shape heights, and paint layers directly in the scene. ## Core Features & Use Cases - Terrain Creation & Querying: Create a Terrain GameObject with TerrainData, then inspect size, resolution, layers, and height at any world position. - Procedural Sculpting: Generate natural landscapes with Perlin noise, add smooth hills with falloff, flatten plateaus, and smooth sharp edges in targeted regions. - Texture Painting: Paint terrain texture layers with configurable brush size and strength at normalized coordinates. - Use Case: Ask the assistant to build a 200x200 terrain with rolling hills, then flatten a plateau on the central peak and paint a grass layer around it — all executed as a sequence of terrain skill calls with undo support via workflow sessions. ## Quick Start Create a Unity terrain named MyTerrain sized 200 by 200, then generate rolling hills on it using Perlin noise with a scale of 20 and a height multiplier of 0.4.

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 natural-looking terrain with Perlin noise in Unity?

Use terrain_generate_perlin with scale, heightMultiplier, octaves, persistence, and lacunarity parameters to produce organic landscapes. A fixed seed makes the generated terrain reproducible across runs.

Can I set Unity terrain heights in a batch region?

Yes, terrain_set_heights_batch accepts a start pixel coordinate and a 2D heights array indexed [z][x] with values from 0 to 1. It reports how many heightmap points were modified in the rectangular region.

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. Trees and grass require Unity Terrain tools or custom scripts; this skill only handles heightmap sculpting 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 list available layers, then pass a valid zero-based layerIndex with your brush size and strength.

Can terrain edits be undone in Unity?

Yes, all terrain operations integrate with workflow sessions. Wrap edits between workflow_session_start and workflow_session_end, then call workflow_session_undo with the session ID to revert the entire change set.