Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在编辑 2D 多边形对撞机时,我们可以选择单击并拖动以更改每条边。
是否有任何方法或热键可以一键拖动放大或缩小整个多边形对撞机 2D?
首先,如果您调整大小,您的gameObject(spriterenderer)对撞机将根据它自动调整大小。如果你只想玩对撞机,那么将一个空child的对象粘贴组件(即polygon collider)作为新的child并从中删除parent。
gameObject(spriterenderer)
child
polygon collider
parent
您是否要调整统一的大小?我对你的问题和描述有点困惑。据我所知,unity 允许您在统一的 x 和 y 比例上调整 2D 精灵的大小,只需在拖动对象时单击 Shift。
如果那不是你想要的,请告诉我。