Scenario Unity World Building 标志

Scenario Unity World Building

组织
scenario-labs
scenario-unity-world-building

适用于构建 Unity 6.3 关卡或开放世界:通过代码或高度图生成地形、程序化岛屿、侵蚀效果、地表混合与植被规则、树木和草地、ProBuilder 灰盒、关卡健身房、模块化套件和预制件摆放、场景布置、地标和玩家引导、岛屿边缘、样条道路、WFC、雾效、场景叠加式流式加载,或解决世界场景卡顿、物体突然出现、内存泄漏或移动端运行缓慢等问题。关键词:Terrain、TerrainData、ProBuilder、blockout、graybox、modular kit、NavMesh、LoadSceneAsync、open world。

概览

发布者scenario-labs
代码仓库skills
技能名称scenario-unity-world-building
星标数
970
复刻数
114
附带文件
22
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 22 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 scenario-labs 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Scenario Unity World Building AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/scenario-labs/skills/tree/main/skills/game-engines/unity/scenario-unity-world-building
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/scenario-labs/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/game-engines/unity/scenario-unity-world-building .claude/skills/scenario-unity-world-building
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Scenario Unity World Building,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Scenario Unity World Building。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Scenario Unity World Building 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Unity world building (level and environment artist)

Expert world building is structure first, then generated content that can be regenerated, then proof: the character fits every space, the camera fits every doorway, the player can reach every space and walk back, the edge of the world holds content, and the worst viewpoint holds the frame budget in a Player. An agent without a mouse does all of it through TerrainData, the ProBuilder API, PrefabUtility and scene APIs, then checks with raycasts, NavMesh paths, captures, a profiling tour and a Player probe. Target: Unity 6000.3.21f1, URP 17.3, ProBuilder 6.1.2, Splines 2.9.0, AI Navigation 2.0.14. If a sibling skill named here is missing from your available skills, ask the user to install it (npx skills add scenario-labs/skills --skill <name>); unattended, proceed from tool schemas and flag the gap.

REQUIRED BACKGROUND: scenario-unity-expert (channels, review loop, 6.3 traps). Import its toolkit; this skill adds scripts/ut_world.py, C# jobs in scripts/AgentKit/World/ and a runtime assembly in scripts/Runtime/World/.

Status (2026-09-24, after the blind-grade refactor): every procedure ran in Unity 6000.3.21f1 on this Mac except the plans marked [not run] in references/procedures.md: tests/code/unity-world-building/test_live_world.py (13 live tests), test_live_world_v2.py (12 live tests) and test_offline.py (7).

Stance (the expert delta)

  1. Lock the structure before content. Terrain size and every texture resolution before sculpting (later changes rescale or resample, 6.3 Terrain manual); metrics from the character AND its camera before blockout, proven in a gym rebuilt whenever the controller changes (level design e-book, gym/zoo); the kit grid before placement (Christina Creates Games, 0o-QnNs-stc [00:07:35]). In code, persist the TerrainData asset before writing splat or the alphamaps are lost (observed).
  2. Author non-destructively, regenerate deterministically. Alba renders movable features, levelers and roads to the heightmap and regenerates the world in ordered, skippable steps before play and in CI; the generated scene is checked in with git update-index --skip-worktree (Manesh Mistry, YOtDVv5-0A4 [00:06:10], [00:09:52], [00:10:05]). A PolyShape rebuilt from its footprint drops every later edit (ProBuilder manual; observed 12 faces back to 7): keep the recipe, not the edited mesh.
  3. Raw procedural output needs a second layer. Noise needs erosion (Lague, eaXk97ujbPQ); WFC needs authored tiles (DV Gen, 20KHNA9jTsE [00:04:22]); roads need routing: a slope-aware A* route cut 2.6 m where straight knots cut a 9.1 m canyon (Alba [00:07:45]; observed).
  4. Block out with one generic piece, then bulk replace; prefab every piece and every compound. One wall everywhere, then doors and windows by replacement (Christina [00:15:14]); a metric fix is one prefab edit (YsBniZ5ya7k [00:06:25]). In a script, record the instance override before replacing: ReplacePrefabAssetOfPrefabInstance kept 0 of 30 placements without RecordPrefabInstancePropertyModifications, 30 of 30 with it (observed; the grid audit stayed clean, a slot and perimeter audit caught it).
  5. The graybox exit gate is mechanical. Doors from agent radius and camera boom, NavMesh over every whole floor with door leaves modified out of the bake and clutter that never splits a room, roofs marked Not Walkable, upper floors linked, one NavMesh Surface per area (Christina [00:17:12], [00:19:27]; YsBniZ5ya7k [00:15:24]); a quick bake for dark zones; landmarks and paths first, signs last (Adam Robinson-Yu, ZW8gWgpptI8 [00:18:37]).
  6. Players test the edge first; guide with a ladder. On an island they swim out and around: put content and a way back on every stretch of coast, not walls ([00:16:54], [00:17:58]). Landmarks, breadcrumbs, paths that lead back, inclines toward the goal, signs last; false peaks need a reason. Here 32 of 36 coast bearings had nothing within 150 m (observed).
  7. Stream only what does not fit, around a persistent core, and judge it in a Player. Alba kept its island resident with LOD and relevance systems ([00:12:43]). The core owns RenderSettings, lightmaps and fog; load by path; never hold allowSceneActivation = false in play (it froze a queued unload for a second, observed); sweep assets after unloads; show a merged proxy while a visible chunk is out. backgroundLoadingPriority and the Integrate marker only mean something in a built Player (6.3 Scripting API; Editor counters read 0 here).
  8. Profile the worst viewpoint, compare statistics, fix on the device's terms. Teleport to anchors, turn 360 degrees, keep the worst heading (Alba [00:29:46]); compare about 200 frames per side (Profile Analyzer, [00:17:00]). On tile-based mobile GPUs opaque LOD foliage beats alpha-tested impostors (7.12 of 32.5 ms, [00:20:14]); Firewatch's distance alpha cutoff is a PC and console choice (Jane Ng, ZYnS3kKTcGg [00:20:29]). LOD Group trees ignore Terrain.treeDistance (60 m and 700 m gave identical frames, observed): the LOD Group is the lever.

Establish first

Platform and budget (default desktop 60 fps = 16.67 ms; mobile 30 fps: 65 % of the 33.3 ms frame = 21.7 ms, scenario-unity-expert); memory of the lowest device (decides whether to stream at all); world size and traversal speed; the character (radius, height, slope limit, step, jump distance) and its camera (pivot, shoulder offset, boom, pitch); art style and fog language; content source (authored, procedural, mixed) and who paints; whether the user's editor holds the project (ut_env.project_lock). Defaults: URP, 1 km terrain, heightmap 1025, 1 m graybox grid, 2.5 m kit grid, story 3 m, capsule 0.4 x 1.8 m, slope 45, step 0.3, jump 2.5 m [added].

Workflow

Each stage is one ut_world call; engine calls, arguments and recorded results are in references/procedures.md.

  1. Spec. Metrics, resolutions, grids, budgets, anchors, memory budget. GATE: every later check has a number.
  2. Terrain. build_island (resolutions first, fBm, erosion, levelers, A* road, rule splat, LOD trees, instanced details), raw_roundtrip for DCC heightmaps, set_terrain_settings for the per-tile settings the Toolbox cannot batch. GATE: 2^n+1, patch 16, distinct detail seeds, road grade <= 10 %, audit 0 errors in a fresh editor.
  3. Gym, then graybox. build_gym(P, metrics) (gym_is_stale after any controller change), then build_village. GATE: the door size passes the NavMesh and its camera clip fraction is known; PathComplete into every building; UV2 everywhere; names carry sizes.
  4. Kit. build_kit then kit_nav_gate. GATE: grid, story, yaw, slot and perimeter audit clean; door leaves ignored by the bake; no roof islands; upper floors linked.
  5. Guidance. setup_views (bookmarks, anchors, sightlines, spawn), audit_guidance, fill_coast until the longest empty arc passes. GATE: every anchor sees a landmark or stands on the main path; every POI walks back; spawn dot >= 0.7.
  6. Look. capture fog off (layout) and fog on (look), capture_pops at the detail, LOD and cull distances. Open every sheet; judge with references/critique.md. GATE: no blank, black, white or magenta frame; pop sizes recorded.
  7. Stream (only if needed). scene_report first; then split_streaming, build_proxies, streaming_tests, stream_probe. GATE: PlayMode 5/5; Player Integrate marker within the priority budget; memory back to baseline after the sweep.
  8. Tour. tour_profile, compare_runs before and after each change. GATE: budget_check pass per anchor; counts decide in the Editor, milliseconds on the device.

Numbers

ValueRelative toSource
2^n+1 (513, 1025, 2049)heightmap; 1025+ for erosion6.3 Terrain manual
16Detail Resolution Per Patch (more only for sparse far grass)6.3 manual
4terrain layers per splat map with height blendsmnLYvF40s4 [00:04:23]
2 / 4 / 10 / 50 msIntegrate budget per frame, Low / BelowNormal / Normal / High, Player only6.3 Scripting API
2.5 x 3 m, Y = 3 nkit wall, story0o-QnNs-stc [00:07:35]
1.0 mnarrowest door for a 0.4 m capsule (0.8 fails)gym, observed
80 % / 27 %camera boom (3.5 m, 20 degrees) blocked through a 1.4 x 2.4 m / 2 x 3 m doorgym, observed
40 pass, 45 failramp degrees at slope limit 45, NavMesh and CharacterController agreegym, observed
0.13 to 0.06 mNavMesh height error on stairs without / with Build Height Meshgym, observed
0.5 to 1.13 of 2 msPlayer Integrate max per frame at Low (village chunk, 34 to 371 ms loads)stream_probe, observed
7.12 of 32.5 msimpostor foliage GPU cost, iPad Mini 4YOtDVv5-0A4 frame [00:19:53]
~200 framesper side of a before/after comparisonYOtDVv5-0A4 [00:17:00]
150 m, 300 mPOI radius, longest empty coast arc (defaults to tune)[added]

Quality gates

  • Measurable: envelope ok, zero compile errors; terrain audit 0 errors (desktop and mobile=True); blockout, kit slot and perimeter audits clean; kit NavMesh gate; gym table; guidance gate; NUnit EditMode 8/8 and PlayMode 5/5; Player probe verdict; budget_check per anchor; compare_runs p-values.
  • Visual: fog-off, fog-on, pop and proxy sheets opened; ut_review flags none; before/after from the same bookmarks; detail reads as language: generic rocks and trees shape-only, narrative props detailed, no fourth rock if three suffice (Firewatch, ZYnS3kKTcGg [00:24:27], [00:25:50]).

Common mistakes

MistakeWhat it looks likeFix
CreateAsset(terrainData) after SetAlphamapsterrain all first layer in a fresh editorasset first, then layers
ReplacePrefabAssetOfPrefabInstance after an unrecorded movereplaced walls stacked at the house origin, holes; grid audit cleanRecordPrefabInstancePropertyModifications after placing; restore the transform; slot audit
two NavMesh Surfaces over one areapaths "complete" through walls on the stale surfaceone surface per area; rebake overlaps
closed door leaves bakedrooms unreachableNavMeshModifier.ignoreFromBuild on leaves
clutter placed without the agent radiusdoor open, room split: 25 % of a floor reachable (observed)keep door zones clear; reject items that disconnect the floor; sample the whole floor
roofs and upper floors in the bakeunreachable islandsroof area Not Walkable; stairs or NavMeshLink
door sized from the capsule onlycamera snaps in at every doorwaymeasure the boom in the gym; interior camera
editing a PolyShape againextrusions gonelock footprints; replay a recipe
tuning treeDistance for LOD treesno change at alltune the LOD Group, capture the cull
Healthy/Dry Color on instanced detailsno color variationvary color in the shader
Bake Light Probes For Trees (on by default) aloneno effecttree renderers receive GI from Light Probes
holding activation to preloadunloads freezeload immediately, gate only a loading screen
no Start scan in a streamera chunk opened in the Editor loads twice (1 vs 2 copies, observed)scan loaded scenes in Start
streaming or memory judged in the Editorcounters 0, priority ignoredstream_probe in a development Player
new ProfilerRecorder(handle) for a marker0 ms foreveradd ProfilerRecorderOptions.StartImmediately (or StartNew); treat a never-sampled marker as no data
per-system GPU ms from FrameTimingManager"terrain 2 ms" that is the whole frametoggle the system and diff, or a GPU capture
judging layout through fog or top-down orthowashed aerial; trees culled by LODfog-off aerial captures

Handoffs

  • Receives assets from scenario-3d, scenario-textures, scenario-skyboxes and scenario-blender-expert; the character controller and camera rig from scenario-unity-gameplay and scenario-unity-animation (Cinemachine); input from scenario-unity-architecture.
  • Delivers to scenario-unity-rendering-lighting: scenes with static flags, UV2, the core as lighting owner, one APV Baking Set with the core and every chunk, baked (and occlusion) with all scenes open [not run here], fog baseline, probe settings per tile; to scenario-unity-shaders: the Firewatch gradient-strip fog as a fullscreen pass spec, grass color variation in the detail shader; to scenario-unity-performance: tour CSV and JSON, compare_runs, the Player probe, the LOD finding, GPU Resident Drawer candidates among chunk props (Forward+, SRP Batcher, Mesh Renderers only, deltas section 5); to scenario-unity-mobile: audit(mobile=True), streaming priorities; to scenario-unity-gameplay: NavMesh surfaces, links, gym table, spawn points; to scenario-unity-pipeline-automation: Addressable scenes, build list, import rules as AssetPostprocessors.
  • Packet: project, channel, scenes, the gates with numbers, all sheets, open issues.

Unity 6.3 notes

  • Polybrush is deprecated and never worked on Terrain: scatter by raycast. ProBuilder 6.1.2: no window (Scene view tool context), PivotLocation.FirstVertex (the docs' "First Corner"), default material is a vertex-color Shader Graph.
  • Terrain Tools 5.3.2 bundled; Splines 2.9.0; AI Navigation 2.0.14 (NavMesh Surface, Modifier, Link, Build Height Mesh); Build Profiles share EditorBuildSettings.scenes; Memory Profiler 1.1.12 and Profile Analyzer 1.4.0 are packages.
  • FindObjectsByType needs a sort mode (obsolete in 6.4); 6.6 new projects enter Play mode without domain reload.

References

  • references/procedures.md: 24 procedures with full calls, live test paths and recorded results.
  • references/expert-notes.md: principles and judgment by expert, with source and timestamp.
  • references/critique.md: rubric for terrain, gym, blockout, kit, guidance, atmosphere, streaming, performance.
  • references/gui-paths.md: Terrain Toolbar, ProBuilder tool context, Splines, NavMesh, multi-scene, profiling windows.
  • references/sources.md: every source with credentials, URLs, best timestamps, revision history.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Scenario Unity World Building AI 技能有什么作用?

适用于构建 Unity 6.3 关卡或开放世界:通过代码或高度图生成地形、程序化岛屿、侵蚀效果、地表混合与植被规则、树木和草地、ProBuilder 灰盒、关卡健身房、模块化套件和预制件摆放、场景布置、地标和玩家引导、岛屿边缘、样条道路、WFC、雾效、场景叠加式流式加载,或解决世界场景卡顿、物体突然出现、内存泄漏或移动端运行缓慢等问题。关键词:Terrain、TerrainData、ProBuilder、blockout、graybox、modular kit、NavMesh、LoadSceneAsync、open world。

为什么在 TypingMind 中使用 Scenario Unity World Building?

因为您只需安装一次,就能搭配任何模型使用。Scenario Unity World Building 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Scenario Unity World Building?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/scenario-labs/skills/tree/main/skills/game-engines/unity/scenario-unity-world-building。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Scenario Unity World Building?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Scenario Unity World Building 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Scenario Unity World Building 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Scenario Unity World Building AI 技能免费吗?

是的。scenario-labs 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇