Problems with navMeshSurface
Hi Freya,
I have a problem using shapes. Some scenes seem to be stuck in an infinity loop as soon as i started them.
I narrowed it down to the navMeshSurface-Component of unity. I build the navmesh through code during runtime.
The shape "polyline" works, though.
It would be great to have a solution for this,
best regards,
Robert
public class navbuilder : MonoBehaviour
{
public NavMeshSurface surface;
void Start()
{
surface.BuildNavMesh();
}
}
I highly suspect this is due to the bounding box of Shapes, which, unfortunately, has this side effect. More on that here
I'll consider the workaround you've mentioned here good enough for now I think! You can probably also uncheck navmesh static from the static flags of the object.
Hopefully that's an okay solution for now!