使用 Set Height 工具可将地形上某个区域的高度调整为特定值。要访问该工具,请单击 Paint Terrain 图标,然后从下拉菜单中选择 Set Height 工具。
Set Height 工具类似于 Raise or Lower Terrain 工具,但多了一个额外的 Height 属性。使用 Set Height 工具进行绘制时,当前高于目标高度的地形区域会降低,而低于该高度的区域会升高。
Set Height 可用于在场景中创建平坦的水平区域,例如高原或人造特征(如道路、平台和台阶)。
使用 Height 属性滑动条或在滑动条右侧的字段中输入数值来手动设置高度。或者,按 Shift 键并单击地形在光标位置采样高度,类似于在图像编辑器中使用“吸管”工具的方式。
如果按 Height 字段旁边的 Flatten 按钮,整个地形都将调整到所选的高度。这对于设置凸起的地平面很有用,例如,如果您希望景观包括地平线上方的山丘和下方的山谷,便可使用此功能。如果选中 Flatten all__,然后按 Flatten__ 按钮,场景中的所有地形都将调平。
还可以使用高度贴图来编辑地形的高度。有关更多信息,请参阅使用高度贴图。
2019–01–29 页面已修订并进行了编辑审查
在 2018.3 版中更新了功能
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.