Guest User

Untitled

a guest
Oct 19th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. using (Stream stream = OpenFileForWrite(folderName, fileName + fileExtension))
  2. {
  3. // Serialize and write the meshes to the file.
  4. byte[] data = SimpleMeshSerializer.Serialize(meshes);
  5. stream.Write(data, 0, data.Length);
  6. stream.Flush();
  7. }
  8.  
  9. Debug.Log("Mesh file saved.");
Add Comment
Please, Sign In to add comment