- Unity 2018 Artificial Intelligence Cookbook(Second Edition)
- Jorge Palacios
- 58字
- 2021-07-16 18:11:36
How it works...
We create a custom editor window and set up the OnScene delegate function for handling events on the scene window. Also, we are capable of creating the graph nodes by traversing the mesh vertex arrays, computing each triangle's centroid. Finally, we make use of the graph's LoadGraph function in order to compute neighbors.