← 返回 Skills 市场
cryptorabea

Unity Level Design Patterns skill.

作者 youssef mostafa rabea · GitHub ↗ · v0.1.0
cross-platform ✓ 安全检测通过
614
总下载
2
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install level-design-patterns
功能描述
Use when creating Unity game scenes and prototypes, building level designs, or automating Unity Editor workflows for terrain, lighting, environment setup, an...
使用说明 (SKILL.md)

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.

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:

// 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

// 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);
}
安全使用建议
This package appears to be a coherent Unity Editor level-design toolkit: the C# scripts create and modify terrains, lights, players, and asset files inside your Unity project and export heightmaps to disk. Before installing or running: 1) Verify the source (homepage is missing and the registry owner is unknown); 2) Inspect the scripts yourself (they are included) for anything you disagree with; 3) Backup your project or test in an isolated/new Unity project since the scripts call DestroyImmediate and AssetDatabase.CreateAsset and will modify your scenes/assets; 4) There are no network calls or secret requests, so credentials/exfiltration risk is low, but the metadata/manifest inconsistency (claiming instruction-only while including code) is a mild red flag—ask the publisher for clarification if provenance matters to you.
功能分析
Type: OpenClaw Skill Name: level-design-patterns Version: 0.1.0 The skill bundle provides Unity Editor scripts and documentation for automating level design tasks. All C# scripts (`LightingSetup.cs`, `PlayerSetup.cs`, `SceneSetupWizard.cs`, `TerrainGenerator.cs`) operate within the Unity Editor environment, performing standard actions like creating GameObjects, configuring lighting, generating terrain, and setting up player controllers. The `TerrainGenerator.cs` script includes an `ExportHeightmap` function that uses `EditorUtility.SaveFilePanel` to allow the user to explicitly choose a location to save a PNG file, which is a benign user-initiated file operation. The `SKILL.md` and reference markdown files contain only instructional content for the AI agent and lack any prompt injection attempts or instructions for malicious behavior. No evidence of data exfiltration, unauthorized execution, persistence, or other malicious activities was found.
能力评估
Purpose & Capability
The name/description match the included Editor scripts and reference docs: terrain generation, lighting, player controllers and scene automation. One discrepancy: registry metadata claimed this was instruction-only with no code files, but the file manifest includes multiple Unity Editor scripts (C#). The scripts are appropriate for the stated purpose, but the metadata/manifest mismatch is an integrity concern.
Instruction Scope
SKILL.md instructs the agent to use Unity Editor automation for terrain, lighting, environment placement, and player setup. The instructions and example code operate only on Unity scene objects, AssetDatabase, RenderSettings, and local file export (via SaveFilePanel). They do not reference unrelated system paths, network endpoints, or environment variables.
Install Mechanism
There is no install spec or external download—lowest-risk installation model. The package includes script files that would be added to a Unity project; no external URLs, package manager installs, or archive extractions are present.
Credentials
No environment variables, credentials, or config paths are requested. The operations performed (creating/deleting GameObjects, creating assets, writing heightmap PNG via user SaveFilePanel) are proportional to a Unity Editor automation tool.
Persistence & Privilege
The skill does not request always:true and uses normal Editor scripts. However, Editor scripts inherently modify project assets and scenes (AssetDatabase.CreateAsset, Object.DestroyImmediate, Lightmapping operations). This is expected for the tool's purpose but grants it capability to change the user's project—review and backup before running.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install level-design-patterns
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /level-design-patterns 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of Unity Level Design Patterns skill. - Provides a comprehensive guide for rapid prototyping of Unity game scenes using automated tools and modern Unity APIs. - Covers workflows for terrain generation, scene setup, automated lighting, environment and prop placement, and player controller creation. - Includes detailed step-by-step instructions, quick reference tables, and example usages for various scene types (post-apocalyptic, fantasy forest, dungeon crawler). - Highlights common mistakes and best practices in Unity level design. - References supporting documentation for Unity APIs, terrain tools, render pipelines, and level design patterns.
元数据
Slug level-design-patterns
版本 0.1.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Unity Level Design Patterns skill. 是什么?

Use when creating Unity game scenes and prototypes, building level designs, or automating Unity Editor workflows for terrain, lighting, environment setup, an... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 614 次。

如何安装 Unity Level Design Patterns skill.?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install level-design-patterns」即可一键安装,无需额外配置。

Unity Level Design Patterns skill. 是免费的吗?

是的,Unity Level Design Patterns skill. 完全免费(开源免费),可自由下载、安装和使用。

Unity Level Design Patterns skill. 支持哪些平台?

Unity Level Design Patterns skill. 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Unity Level Design Patterns skill.?

由 youssef mostafa rabea(@cryptorabea)开发并维护,当前版本 v0.1.0。

💬 留言讨论