Aimon Z. Asked:2020-07-30 19:13:13 +0000 UTC2020-07-30 19:13:13 +0000 UTC 2020-07-30 19:13:13 +0000 UTC 如何在 UI 中为一条线放置锚点 772 我使用 Image 组件创建了一条线,将高度设置为 1 个单位,如何正确放置锚点? unity3d 1 个回答 Voted Best Answer luvjungle 2020-07-31T18:21:24Z2020-07-31T18:21:24Z 取决于这条线的位置和用途。如果它只是整个屏幕上的一条水平线,那么在X的边缘放置anchors,尽可能缩小到Y,设置为RectTransform left = 0 right = 0 Pos Y = 0 Height = 1
取决于这条线的位置和用途。如果它只是整个屏幕上的一条水平线,那么在X的边缘放置anchors,尽可能缩小到Y,设置为
RectTransformleft = 0right = 0Pos Y = 0Height = 1