NavMesh

by user 224464722878005248

But I don’t really understand because there is a mesh if unity can display it
But where, can’t find it :confused:

by user 224464722878005248

by user 224464722878005248

The NavMeshAsset does seem to contain the mesh

Yep…

by user 224464722878005248

im not sure where they store it

You could use something like var meshes = NavMesh.CalculateTriangulation(); and then make a mesh from that (in Unity)

I will try to create it dynamically by using NavMesh.CalculateTriangulation() in C#

Because it seems that it’s not available directly in unity

by user 224464722878005248

Ah, We find the same thing

by user 224464722878005248

yup

Okay

by user 224464722878005248

by user 224464722878005248

It works on unity
Now, how to get that on my scene ?

by user 224464722878005248

You mean triangulated? (the screenshot is a mesh?)

Hmm, yes, the mesh generated after the game’s running

by user 224464722878005248

Yep but only during run

by user 224464722878005248

by user 224464722878005248

None to " "

by user 224464722878005248

by user 224464722878005248

You can make an editor script and generate your script via e.g. ContextMenu in editor for testing and you can assign it to the meshfilter or the component that needs it in a field