Problems with navMeshSurface

Avatar
  • updated
  • Unity's Fault

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();
}
}

Reporting a bug? please specify Unity version:
2019.4
Reporting a bug? please specify Shapes version:
2.3.1
Reporting a bug? please specify Render Pipeline:
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  • Unity's Fault

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!

Avatar
Freya Holmér creator
  • Answer
  • Unity's Fault

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!

Avatar
robert

Hi again, 

I found a workaround... 

I added a navmesh modifier -component on the shapes-object and checked 'ignore from build'. 

So this works for me, i don't want the shape to be part of the navmesh. 

br

Avatar
robert

Hi Freya, 

Thanks for the reply. 

Anything works fine until i add a shapes-object to the scene. So it is most likely a matter of compatibility, i guess. Sorry, missed that part :). 

And as mentioned above, there are no issues with the polyline-shape. The scene runs as usual then. 
It only appears when i add a ring-shape, for example.



Avatar
Freya Holmér creator
  • Under Review

wait are you sure this has anything to do with shapes? this looks like a navmesh issue no?