- Home /
Render overlay in editor like the NavMesh Display option 'Show NavMesh'
I am working on creating my own navigation mesh implementation and I want to be able to add an option in the editor to display some visualization of the mesh, like the built in unity nav mesh option.
I have tried doing gizmos to display a grid but because the data points easily reach hundreds of thousands, the OnDrawGizmos makes the system crawl to a near stop, so that is not an option.
Essentially I would like some insight into how Unity does it with their navmesh or have some tips or direction into how I may implement something like an overlay.
Thank you!
No I have not. I decided to stick with the built in system for now. However, I believe they generate meshes displaying the navmesh and then the editor button displays/hides them. Since the vectors are already there, its generating the mesh that you would need to figure out if you are doing your own thing.