Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

NavMesh.CalculateTriangulation

static function CalculateTriangulation(): NavMeshTriangulation;
static NavMeshTriangulation CalculateTriangulation();
static def CalculateTriangulation() as 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.