报错

Navagent “SetDestination“ can only be called on an active agent that has been placed on a NavMesh.

解决

检查角色身上的 Agent Type

:
是否和烘焙场景里面的 NavmeshSurfaceAgent Type 一致:
在这里插入图片描述

Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐