youssef mostafa rabea

Unity Level Design Patterns skill.

開發程式設計v0.1.0
作者:youssef mostafa rabea更新於 2026-05-11level-design-patterns@clawhub_cryptorabea/level-design-patterns
程式碼生成指令碼工具#Game

據 AlphaMoat 統計,截至 2026-09,Unity Level Design Patterns skill. 累計下載 1,873 次、獲 3 個星標,在全部 5,078 個 AI 技能中排名第 4,520 位,在「開發程式設計」分類(577 個)中排名第 538 位。

累計安裝
242
累計下載
1873
星標
3
全站排名
#4,520
全站前 90% · 「開發程式設計」前 94%
平台累計安裝累計下載星標評論
ClawHub ↗4315762-
SkillHub ↗24218733—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

按五步工作流執行:先查 Unity 最新 API(Terrain Tools、URP/HDRP、DOTS/ECS、Shader Graph、VFX Graph),再用編輯器指令碼自動化場景初始化、地形生成(Unity Terrain / Mesh / 程式化三種方式)、環境與道具佈置,最後建立玩家控制器(FPS、第三人稱、俯視角)與基礎玩法。文件介紹 SceneSetupWizard.cs、TerrainGenerator.cs 等編輯器工具與 post-apocalyptic、fantasy forest、dungeon crawler 三類場景模板,並列出渲染管線、地形比例、光照烘焙等常見錯誤。 編輯器命令可能刪除或覆蓋場景資料,且 Undo 不一定可靠;應用前先稽核,並在有備份的獨立測試場景中試執行。

資料釋出於 2026-10-29

可以用來做什麼

  • 建立原型場景(末世、奇幻森林、地牢等)
  • 自動化地形生成、光照與後期處理設定
  • 搭建玩家控制器與基礎玩法系統

什麼時候用

  • 建立 Unity 遊戲場景、關卡設計或編輯器工作流自動化時
  • 需要把概念快速變成可玩場景時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

建立一個帶霧效和廢墟的末世原型場景
為奇幻森林關卡生成地形並配置光照

月度資料趨勢

累計下載1873
520124719732026-03 · 累計下載 6202026-05 · 累計下載 10762026-07 · 累計下載 13802026-08 · 累計下載 14682026-09 · 累計下載 187326-0326-09
星標3
2332026-03 · 星標 22026-05 · 星標 32026-07 · 星標 32026-08 · 星標 32026-09 · 星標 326-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-091873—3
2026-081468+6.4%3
2026-071380—3
2026-051076—3
2026-03620—2

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

5.3 KB · ClawHub v0.1.0
---
name: unity-level-design
description: Use when creating Unity game scenes and prototypes, building level designs, or automating Unity Editor workflows for terrain, lighting, environment setup, and player controllers. Use for post-apocalyptic scenes, fantasy forests, dungeon crawlers, and other game environments that need rapid prototyping.
---

# Unity Level Design

## Overview

Rapidly prototype Unity game scenes using Editor automation, modern Unity APIs, and best practices for level design. This skill automates terrain generation, lighting setup, environment placement, and player controller creation to get you implementing gameplay ideas quickly.
展開全部(共 171 行)

## When to Use

Use this skill when:
- Creating prototype scenes (post-apocalypse, fantasy, sci-fi, dungeon crawler, etc.)
- Setting up Unity terrain, meshes, and ground geometry
- Automating lighting, post-processing, and environment setup
- Building player controllers and basic gameplay systems
- Need to go from concept to playable scene rapidly

## Core Workflow

### Step 1: Research Current APIs

Before implementing, check Unity's latest APIs and best practices:

**Modern Unity Systems:**
- Terrain Tools package (GPU-accelerated sculpting)
- Universal Render Pipeline (URP) or High Definition Render Pipeline (HDRP)
- DOTS/ECS for performance-critical scenarios
- Shader Graph for custom materials
- VFX Graph for particle effects

**Key APIs to reference:**
- `UnityEngine.Terrain` - Terrain manipulation
- `UnityEditor.TerrainTools` - Editor terrain tools
- `UnityEngine.Rendering.Universal` - URP components
- `UnityEditor.SceneManagement` - Scene automation

### Step 2: Scene Setup Automation

Use Editor scripts to automate repetitive setup:

```csharp
// Example: Automated scene initialization
public static class SceneSetupHelper
{
    [MenuItem("Level Design/Create Basic Scene")]
    public static void CreateBasicScene()
    {
        // Setup lighting
        SetupLighting();
        
        // Create terrain
        CreateTerrain();
        
        // Setup post-processing
        SetupPostProcessing();
        
        // Create player
        CreatePlayerController();
    }
}
```

### Step 3: Terrain Generation

**Options:**
1. **Unity Terrain** - Best for natural landscapes
2. **Mesh Generation** - Best for stylized/architectural
3. **Procedural Generation** - Best for endless/replayable worlds

### Step 4: Environment & Props

Automate placement of:
- Vegetation (trees, grass, rocks)
- Structures (buildings, ruins, dungeons)
- Lighting (sun, ambient, point lights)
- Effects (fog, particles, post-processing)

### Step 5: Player & Gameplay

Create basic:
- Player controller (FPS, third-person, top-down)
- Camera setup
- Input handling
- Basic interactions

## Scene Types

### Post-Apocalyptic Scene
- Destroyed urban environment
- Ruined buildings and debris
- Overgrown vegetation
- Atmospheric fog and lighting
- Scattered resources/props

### Fantasy Forest
- Dense woodland terrain
- Rivers and lakes
- Fantasy vegetation
- Magical lighting effects
- Pathways and clearings

### Dungeon Crawler
- Procedural room generation
- Corridor systems
- Torch/candle lighting
- Traps and enemy spawners
- Loot chests

## Quick Reference

| Task | Method | API/Tool |
|------|--------|----------|
| Create Terrain | Editor script | `Terrain.CreateTerrainGameObject` |
| Sculpt Terrain | Noise/heightmaps | `TerrainData.SetHeights` |
| Add Vegetation | Tree/Grass painting | `TerrainData.treeInstances` |
| Setup Lighting | URP/HDRP | `UniversalAdditionalLightData` |
| Post-Processing | Volume components | `Volume` + profiles |
| Player Controller | Character Controller | `CharacterController` component |
| Procedural Meshes | Runtime generation | `Mesh` class |

## Editor Tools

See `scripts/` for automation tools:
- `SceneSetupWizard.cs` - One-click scene initialization
- `TerrainGenerator.cs` - Procedural terrain creation
- `EnvironmentPainter.cs` - Batch environment placement
- `LightingSetup.cs` - Automated lighting configuration

## References

See `references/` for detailed documentation:
- `unity-apis.md` - Current Unity API reference
- `terrain-tools.md` - Terrain system documentation
- `urp-setup.md` - Universal Render Pipeline guide
- `level-design-patterns.md` - Best practices and patterns

## Common Mistakes

- **Wrong render pipeline**: Check if project uses URP, HDRP, or Built-in RP
- **Terrain scale**: Unity terrain uses different height/length scales
- **Lighting baking**: Realtime GI can be slow; use baked lighting for static geometry
- **Performance**: Too many trees/colliders will kill performance
- **Scale consistency**: Keep player, environment, and props to consistent scale

## Example Usage

```csharp
// Create a post-apocalyptic scene
[MenuItem("Level Design/Post-Apocalyptic Scene")]
static void CreatePostApocalypticScene()
{
    // 1. Create terrain with noise
    var terrain = TerrainGenerator.CreateRuinedTerrain();
    
    // 2. Setup dramatic lighting
    LightingSetup.CreateDramaticLighting(Color.gray * 0.3f);
    
    // 3. Add fog and post-processing
    PostProcessingSetup.CreateAtmosphericFog();
    
    // 4. Scatter debris and props
    EnvironmentPainter.ScatterDebris(50);
    
    // 5. Create player
    var player = PlayerSetup.CreateFPSPlayer();
    player.transform.position = new Vector3(0, 5, 0);
}
```

「開發程式設計」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。