Class GameObjectExport
Creates glTF files from GameObject hierarchies
Inherited Members
Namespace: GLTFast.Export
Assembly: solution.dll
Syntax
public class GameObjectExport
Constructors
Name | Description |
---|---|
GameObjectExport(ExportSettings, GameObjectExportSettings, IMaterialExport, IDeferAgent, ICodeLogger) | Provides glTF export of GameObject based scenes and hierarchies. |
Methods
Name | Description |
---|---|
AddScene(GameObject[], string) | Adds a scene to the glTF. If the conversion to glTF was not flawless (i.e. parts of the scene were not converted 100% correctly) you still might be able to export a glTF. You may use the CollectingLogger to analyze what exactly went wrong. |
SaveToFileAndDispose(string, CancellationToken) | Exports the collected scenes/content as glTF, writes it to a file and disposes this object. After the export this instance cannot be re-used! |
SaveToStreamAndDispose(Stream, CancellationToken) | Exports the collected scenes/content as glTF, writes it to a Stream and disposes this object. Only works for self-contained glTF-Binary. After the export this instance cannot be re-used! |