首页 > 代码库 > "SetDestination" can only be called on an active agent that has been placed on a NavMesh. 解决办法

"SetDestination" can only be called on an active agent that has been placed on a NavMesh. 解决办法

1.设置了 navmesh之后 要bake 也就是烘焙之后 才有效果

2.在unity 中 window->navigation

 技术分享

 

 
4.基本上问题应该得以解决;

 

 

"SetDestination" can only be called on an active agent that has been placed on a NavMesh. 解决办法