# 关于模拟经营游戏的网格吸附

**URL:** <https://forums.unrealengine.com/t/topic/1091611>\
**Category:** 简体中文 (Simplified Chinese)\
**Tags:** unreal-engine, question\
**Created:** [April 17, 2023, 5:59pm UTC](https://forums.unrealengine.com/t/topic/1091611 "2023-04-17T17:59:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vito1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vito1](https://forums.unrealengine.com/u/vito1)\
**Post date:** [April 17, 2023, 5:59pm UTC](https://forums.unrealengine.com/t/topic/1091611/1 "2023-04-17T17:59:21Z")

</div>

我是一名UE5的新手。我想做一款模拟经营游戏。但是我卡在了网格吸附这一步，我不知道如何把地图设置成网格的样子，也不知道如果在放置物体的时候，让他按照网格吸附。  
就像城市天际线那样，当放置物体的时候，如果已有其他物体，那么碰撞的部分就会变成红色。  
我翻了一下B站，发现找不到这类游戏的教程。  
我虽然在商店里找到了蓝图，但是蓝图也只是针对于3D物件的，而我是一个2D游戏。  
我希望论坛的大佬能够教我解决一下这个核心问题，如果有相关的视频也可以推荐给我一下。  
我会把提供帮助的大佬的ID，放在游戏的感谢名单里，感谢。

---

<div class="post-metadata">

**Author:** ![zhuangbiiii](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zhuangbiiii/32/1188884_2.png) [@zhuangbiiii](https://forums.unrealengine.com/u/zhuangbiiii)\
**Post date:** [April 21, 2023, 5:39am UTC](https://forums.unrealengine.com/t/topic/1091611/2 "2023-04-21T05:39:26Z")

</div>

你一直在强调2D游戏，那你怎么实现你的游戏的场景地板的？  
你再新手好歹有个东西是吧？给我们看看。

---

<div class="post-metadata">

**Author:** ![vito1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vito1](https://forums.unrealengine.com/u/vito1)\
**Post date:** [April 21, 2023, 5:39am UTC](https://forums.unrealengine.com/t/topic/1091611/3 "2023-04-21T05:39:59Z")

</div>

地板就是一张背景图啊。。。

---

<div class="post-metadata">

**Author:** ![zhuangbiiii](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zhuangbiiii/32/1188884_2.png) [@zhuangbiiii](https://forums.unrealengine.com/u/zhuangbiiii)\
**Post date:** [April 21, 2023, 5:40am UTC](https://forums.unrealengine.com/t/topic/1091611/4 "2023-04-21T05:40:46Z")

</div>

图直接贴在像机上？
