导航网格构建组件为您提供在运行时以及在 Unity Editor 中构建(也称为烘焙)和使用导航网格的额外控制力。
从 Unity 商店下载的标准 Unity Editor 安装程序中未提供下列高级导航网格构建组件。请从 Unity Technologies GitHub 下载这些组件并单独安装。
导航网格有四个配套的高级组件:
导航网格表面 (NavMesh Surface) - 用于为一种类型的代理构建和启用导航网格表面。
导航网格修改器 (NavMesh Modifier) - 用于根据变换层级视图来影响导航网格区域类型的导航网格生成。
导航网格修改器体积 (NavMeshModifierVolume) - 用于根据体积来影响导航网格区域类型的导航网格生成。
导航网格链接 (NavMeshLink) - 用于为一种类型的代理连接相同或不同的导航网格表面。
另请参阅有关 Mesh-BuildingComponents-API 的文档。
有关代理类型的更多信息,请参阅创建导航网格代理的相关文档。
有关导航网格区域类型的更多详细信息,请参阅导航网格区域的相关文档。
要安装高级导航网格构建组件,请执行以下操作:
下载并安装 Unity 5.6 或更高版本。
在 Unity Technologies GitHub 上的导航网格组件 (NavMesh Components) 页面中,单击绿色的 Clone or download 按钮以克隆或下载代码仓库。
使用 Unity 打开导航网格组件项目 (NavMesh Components Project),或者将 Assets/NavMeshComponents 文件夹的内容复制到现有项目。
可在 Assets/Examples 文件夹中查找其他示例。
__注意:__确保在安装高级导航网格构建组件之前备份项目。
2017–05–26 页面已发布
5.6 中的新功能
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.