C# Класс HoloToolkit.Unity.MeshSaver

MeshSaver is a static class containing methods used for saving and loading meshes.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Load ( string fileName ) : IEnumerable

Loads the specified mesh file.

Determines the path from which to load and automatically applies the file extension.

Save ( string fileName, IEnumerable meshes ) : string

Saves the provided meshes to the specified file.

Determines the save path to use and automatically applies the file extension.

Приватные методы

Метод Описание
OpenFileForRead ( string folderName, string fileName ) : Stream

Opens the specified file for reading.

OpenFileForWrite ( string folderName, string fileName ) : Stream

Opens the specified file for writing.

If the specified file already exists, it will be overwritten.

Описание методов

Load() публичный статический Метод

Loads the specified mesh file.
Determines the path from which to load and automatically applies the file extension.
public static Load ( string fileName ) : IEnumerable
fileName string Name of the saved mesh file. Exclude path and extension.
Результат IEnumerable

Save() публичный статический Метод

Saves the provided meshes to the specified file.
Determines the save path to use and automatically applies the file extension.
public static Save ( string fileName, IEnumerable meshes ) : string
fileName string Name to give the saved mesh file. Exclude path and extension.
meshes IEnumerable The collection of Mesh objects to save.
Результат string