unity-terrain

Automate Unity terrain creation and modification via height, texture, and feature scripts.

1.6k|152|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/Besty0728/Unity-Skills --skill unity-terrain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-terrain
Source: https://github.com/Besty0728/Unity-Skills/tree/main/unity-skills/skills/terrain
Command: npx skills add https://github.com/Besty0728/Unity-Skills --skill unity-terrain

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity terrains require manual setup and repeated adjustments to create believable landscapes. This Skill offers programmable terrain creation and manipulation to automate height, texture, and terrain structure operations, reducing repetitive tasks.

Core Features & Use Cases

  • Create and configure Terrain GameObjects with TerrainData.
  • Get and set terrain heights, paint textures, and apply modifications like hills, smoothing, and flattening.
  • Use case: Quickly generate a terrain prototype, then iteratively adjust features via UI or code.

Quick Start

Use the terrain_create skill to add a new Terrain to the scene and then apply terrain_generate_perlin to sculpt natural features. For example: unity_skills.call_skill("terrain_create", name="MyTerrain", width=200, length=200, height=50)

Frequently Asked Questions about unity-terrain

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

FAQPage Schema
How do I automate Unity terrain creation and height adjustments via scripting?

You can automate Unity terrain creation by calling scripted functions to generate new Terrain GameObjects, set specific height values, and apply batch height modifications across the terrain map.

Can I generate natural terrain features using Perlin noise in Unity?

Yes, you can generate natural terrain features by applying a Perlin noise function to sculpt realistic heights and organic landscapes directly within the Unity context.

What is the best way to paint textures and add hills to a Unity terrain programmatically?

The best way to paint textures and add hills programmatically is to call dedicated terrain manipulation functions that apply texture layers and elevate specific terrain areas in batch.

Do I need to manually set up TerrainData before scripting terrain modifications in Unity?

No, you do not need to manually set up TerrainData beforehand because the terrain creation function configures the TerrainData automatically when generating the new Unity terrain object.

What smoothing and flattening operations are available for Unity terrain generation?

Available smoothing and flattening operations include dedicated functions to average out rough height maps and level terrain surfaces to a uniform height across the specified Unity scene.

How do I retrieve current terrain heights and information in Unity?

You can retrieve current terrain heights and information by calling the get info and get height functions, which return the existing terrain data and elevation values for inspection.