How to generate A* graph

Hello all
How do I generate a weighted pathfinding graph on my terrain
I searched everywhere but couldn’t get the hang of it
Thanks for your time

1 Answer

1

Unity has built in pathfinding using Navigation Meshes.

See: Navigation and Pathfinding

Window > Navigation has settings that control NavMesh Generation.

Although this feature is very nice can in my version of unity it requires pro which I don't have any other possibilities for generating the graph? thanks again in advance

Unity is very good about giving as much access to implement your own code as possible. Take a look in the scripting documentation: - [NavMesh][1] - [NavMeshPath][2] [1]: http://docs.unity3d.com/Documentation/ScriptReference/NavMesh.html [2]: http://docs.unity3d.com/Documentation/ScriptReference/NavMeshPath.html

Even though you don't have access to NavMeshAgent without pro, you should still have access NavMesh.

ah I see but from some reason my Naivgation window in disabled and I can not open that window, though I can still add NavMesh component to gameobject thanks for your help by the way