saving mesh instance via GDscript ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By unlasting

how can I save the mesh instance which is randomly generated.

I would like to save it as a mesh resource via Gd-script. so when user just re-open the game I can load the mesh resource and user still has the same terrain.

thanks for your answer.