unity-terrain

Create and modify Unity terrains programmatically with height, texture, and feature operations.

1|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/muddyrain/valley-mas --skill unity-terrain-muddyrain
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: unity-terrain
Source: https://github.com/muddyrain/valley-mas/tree/main/.codex/skills/unity-skills/skills/terrain
Command: npx skills add https://github.com/muddyrain/valley-mas --skill unity-terrain-muddyrain

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity terrain creation and modification is essential for rapid level design in Unity, enabling developers to procedurally generate and sculpt landscapes.

Core Features & Use Cases

  • Create Terrain: initialize a new Terrain GameObject with basic settings.
  • Height & Texture: adjust heights, paint textures, and flatten or smooth regions.
  • Feature generation: add hills, generate Perlin-based terrain, and batch update heights for large regions.
  • Use Case: quickly prototype a forested valley by creating terrain, adding hills, and painting textures.

Quick Start

Create a terrain named SampleTerrain and generate natural height 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 procedurally generate Unity terrain with Perlin noise?▼

You can procedurally generate Unity terrain by using the terrain_generate_perlin operation to apply natural height variations directly to a terrain GameObject, creating organic landscapes without manual sculpting.

What's the best way to batch update terrain heights across large regions in Unity?▼

The terrain_set_heights_batch operation allows you to batch update terrain heights across large regions efficiently, modifying multiple heightmap values simultaneously instead of setting individual points one by one.

Can I paint textures on Unity terrains programmatically?▼

Yes, you can paint textures on Unity terrains programmatically by using the terrain_paint_texture operation, which applies texture layers to specified terrain regions with customizable brush parameters.

How do I add hills and smooth terrain features in Unity?▼

Use terrain_add_hill to elevate specific regions and create hills, then apply terrain_smooth to blend and refine terrain features, producing natural transitions between elevated and flat areas.

Does this Unity terrain editing approach support rapid level prototyping?▼

Yes, this approach supports rapid level prototyping by combining terrain creation, Perlin noise generation, height adjustments, and texture painting into a programmatic workflow suitable for quick scene iteration.

What are the limitations of procedural terrain generation in Unity?▼

Procedural terrain generation relies on heightmap resolution and noise parameters, meaning extreme terrain detail requires higher resolution settings, and batch operations on very large regions may impact performance during generation.