Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Hot to create a custom navmesh?

Discussion in '2D' started by Android272, Feb 12, 2019.

  1. Android272

    Android272

    Joined:
    Oct 14, 2016
    Posts:
    22
    I am asking this question because it is quite hard to get an answer from Google. I am not asking how to do A* or Dijkstra pathfinding using a navmesh. I am asking how to make the mesh that is navigatable. Everything I search assumes you already have a mesh that you want to navigate and then goes into how A* works. I don't know how to create the mesh. Making a grid is quite easy but I don't want to use a grid. I can make a square mesh with four vertices and two triangles in code. But I don't know how to make anything more complicated than that.

    I would like to be able to draw a mesh in the unity editor. Can someone link a resource or tutorial that shows how to make this happen? Any guidance would be great.