NavMesh寻路报错

RuntimeNavMeshBuilder: Source mesh Combined Mesh (root: scene) does not allow read access.This will work in playmode in the editor but not in player

正常来讲有两种情况:

如果因为某些组件的mesh不支持读写

image.png

上述情况下,RuntimeNavMeshBuilder: Source mesh Combined Mesh (会显示mesh的名称)

如果是报错 (root: scene)这种

直接寻找当前参与烘焙的场景,一定有参与烘焙的物体,被标记了static,且这个物体的mesh没有给与读写权限
我这个报错就是因为地面(plane)用的系统mesh,其无法修改设置。所导致的报错

你可能感兴趣的:(NavMesh寻路报错)