In the file NavMeshBase.cs the code to hide the renderer is before the code to get the renderer component, leading to the navmesh segments not hiding on play.
I temp fixed this myself by changing:
"
(disableRenderer)
{
Hide ();
}
_collider = GetComponent <Collider>();
_meshRenderer = GetComponent <MeshRenderer>();
_meshCollider = GetComponent <MeshCollider>();
_meshFilter = GetComponent <MeshFilter>();
"
into:
"
_collider = GetComponent <Collider>();
_meshRenderer = GetComponent <MeshRenderer>();
_meshCollider = GetComponent <MeshCollider>();
_meshFilter = GetComponent <MeshFilter>();
if (disableRenderer)
{
Hide ();
}
"
I don't know when this problem started (I think I remember it working correctly at one point) or how important this is. Hope I'm not being too picky.
Thanks,
Robb.
Comments
It shouldn't matter which way around it is, but it won't do any harm to make the change official.