Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NavMesh.CalculateTriangulation

public static function CalculateTriangulation(): NavMeshTriangulation;

Description

Triangulation of the current navmesh.

Calculates and returns a simple triangulation of the current navmesh - containing the vertices, triangle indices and navmesh layers.