Function NavmeshPrefab.ScanAndSaveToFile

ScanAndSaveToFile ()

Scans the navmesh and saves it to the serializedNavmesh field.

Public
void ScanAndSaveToFile ()

Scans the navmesh and saves it to the serializedNavmesh field.

A new file will be created if serializedNavmesh is null. If this object is part of a prefab, the file name will be based on the prefab's name.

Note

This method is only available in the editor.