unity3d - How to "bake" NavMesh from script at runtime?
问题描述
how to bake NavMesh in runtime from script. I searched in Google but did not find.
some rendered scene and buttons including bake
解决方案
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.
There were tutorials made by Brackeys in collaboration with Unity.
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.
Here is also the link for Unity's site and tutorials on runtime navmesh.
推荐阅读
- project - 创建网站监听机器人并发布更新
- ruby-on-rails - Ruby << 语法方法会引发错误,但 .push 方法在使用 yield 时不会。为什么?
- machine-learning - Ml.Net 图像分类增量学习
- google-apps-script - 在幻灯片上排列图像
- c - 如何在 C 中的一行中输入以空格分隔的输入?
- python - Discord.py 数据库 NameError 'conn' 未使用 asyncpg 定义
- c++ - 如何使用 std::sort 根据某个函数返回的值对数组进行排序,同时传递要排序的数组元素?
- linux - 如何检测当前进程中动态库的卸载?
- android - Firebase 存储参考的构造函数是什么?
- rust - 将对象转换为 serde_json::Value 而不进行序列化和反序列化