Function NavmeshPrefab.SaveToFile

SaveToFile (byte[] data)

Saves the given data to the serializedNavmesh field, or creates a new file if none exists.

Public
void SaveToFile (

byte[]

data

)

Saves the given data to the serializedNavmesh field, or creates a new file if none exists.

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.

Warning

This method is only available in the editor.

You should only pass valid serialized tile data to this function.