如何“烘烤"运行时脚本中的导航网格? [英] How to "bake" NavMesh from script at runtime?

查看:23
本文介绍了如何“烘烤"运行时脚本中的导航网格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从脚本在运行时烘焙 NavMesh.我在谷歌搜索但没有找到.
一些渲染场景和按钮,包括bake

how to bake NavMesh in runtime from script. I searched in Google but did not find.
some rendered scene and buttons including bake

推荐答案

目前,Unity 没有办法在运行时烘焙导航网格,但 Unity 有一个实验包,可以让您在运行时烘焙导航网格.这是非常稳定的包.

Currently, Unity doesn't have a way to bake but NavMesh at runtime BUT there is an experimental package that Unity has that allows you bake a NavMesh at runtime. It is very stable package.

Brackeys 与 Unity 合作制作了教程.

There were tutorials made by Brackeys in collaboration with Unity.

演示项目可在 GitHub 上下载.您可以在那里的脚本中使用来烘焙运行时导航网格.

The demo project is available for download on GitHub. You can use in the scripts in there to bake a runtime NavMesh.

我强烈建议您先观看教程.

I would highly recommend watching the tutorial first.

这里也是 Unity 网站的链接和 关于运行时导航网格的教程.

Here is also the link for Unity's site and tutorials on runtime navmesh.

这篇关于如何“烘烤"运行时脚本中的导航网格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆