# Community Tutorial: PCG（英文）中的递归地牢

**URL:** <https://forums.unrealengine.com/t/community-tutorial-pcg/2875056>\
**Category:** Tutorial & Course Discussions\
**Tags:** unreal-engine\
**Created:** [November 30, 2026, 10:59am UTC](https://forums.unrealengine.com/t/community-tutorial-pcg/2875056 "2026-11-30T10:59:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Epic\_AutoTranslator](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/epic_autotranslator/32/1198372_2.png) [@Epic\_AutoTranslator](https://forums.unrealengine.com/u/Epic_AutoTranslator)\
**Post date:** [November 30, 2026, 10:59am UTC](https://forums.unrealengine.com/t/community-tutorial-pcg/2875056/1 "2026-11-30T10:59:45Z")

</div>

在 UE 5.8 中完全使用 PCG，从单个房间开始逐层生成一个地牢。通过一个会调用自身的递归子图，并使用“获取子图深度”在精确的层数处停止。支持自剪枝（Self Pruning），确保任意两个房间不会共享同一个网格单元。还包含一个在蓝图中制作的自定义 PCG 节点，使用 5.7 中引入的 Point Processor Simple 类，用于计算每个房间拥有的门。另有三张数据表，用于选择每个房间的类型、旋转和网格体。包含入门项目（含 24 个房间的组件包）以及完整成品项目。视频为西班牙语配音，附英文字幕。  
  
[https://dev.epicgames.com/community/learning/tutorials/ReW87/unreal-engine-pcg](https://dev.epicgames.com/community/learning/tutorials/ReW87/unreal-engine-pcg)
