unity Failed to create agent because there is no valid NavMesh

在进行简单的导航/寻路练习时遇到这个问题

unity Failed to create agent because there is no valid NavMesh

后来在 这里 找到了解决办法,原因是没有进行网格烘培Bake

unity Failed to create agent because there is no valid NavMesh

那么,我们进行简单的烘培

unity Failed to create agent because there is no valid NavMesh

 

 我的需求是只要能进行导航即可,所以只对地面进行默认烘培,点击Bake进行烘培。unity Failed to create agent because there is no valid NavMesh

 重新运行就OK了。