FDatasmithSceneExporter Class Reference

This is the export for a DatasmithScene. More...

#include <DatasmithSceneExporter.h>

Public Member Functions

void PreExport ()
 Indicates that we're starting the export process. More...
 
void Export (TSharedRef< IDatasmithScene > DatasmithScene, bool bCleanupUnusedElements=true)
 Exports the entire scene. More...
 
void Reset ()
 Resets all the settings on the scene. More...
 
void SetProgressManager (const TSharedPtr< IDatasmithProgressManager > &InProgressManager)
 Sets the progress manager for visual feedback on exporting. More...
 
void SetLogger (const TSharedPtr< FDatasmithLogger > &InLogger)
 Sets the logger to store the summary of the export process. More...
 
void SetName (const TCHAR *InName)
 Sets the name of the scene to export. More...
 
void SetOutputPath (const TCHAR *InOutputPath)
 Sets the output path to where this scene will be exporter. More...
 
const TCHAR * GetOutputPath () const
 
const TCHAR * GetAssetsOutputPath () const
 Gets the path to the assets output folder. More...
 

Detailed Description

This is the export for a DatasmithScene.

Call PreExport, then Export to finish the export process.

Examples
DatasmithExportBasicSample.cpp.

Member Function Documentation

◆ Export()

void FDatasmithSceneExporter::Export ( TSharedRef< IDatasmithScene >  DatasmithScene,
bool  bCleanupUnusedElements = true 
)

Exports the entire scene.

It will create the scene file as well as the resized textures (in case of resize is enabled).

Parameters
bCleanupUnusedElementsRemove unused meshes, textures and materials before exporting
Examples
DatasmithExportBasicSample.cpp.

◆ GetAssetsOutputPath()

const TCHAR* FDatasmithSceneExporter::GetAssetsOutputPath ( ) const

Gets the path to the assets output folder.

This is where we output the mesh files, textures, etc.

Examples
DatasmithExportBasicSample.cpp.

◆ PreExport()

void FDatasmithSceneExporter::PreExport ( )

Indicates that we're starting the export process.

Starts the export metrics.

◆ Reset()

void FDatasmithSceneExporter::Reset ( )

Resets all the settings on the scene.

◆ SetLogger()

void FDatasmithSceneExporter::SetLogger ( const TSharedPtr< FDatasmithLogger > &  InLogger)

Sets the logger to store the summary of the export process.

◆ SetName()

void FDatasmithSceneExporter::SetName ( const TCHAR *  InName)

Sets the name of the scene to export.

The resulting file and folder will use this name.

Examples
DatasmithExportBasicSample.cpp.

◆ SetOutputPath()

void FDatasmithSceneExporter::SetOutputPath ( const TCHAR *  InOutputPath)

Sets the output path to where this scene will be exporter.

Examples
DatasmithExportBasicSample.cpp.

◆ SetProgressManager()

void FDatasmithSceneExporter::SetProgressManager ( const TSharedPtr< IDatasmithProgressManager > &  InProgressManager)

Sets the progress manager for visual feedback on exporting.


The documentation for this class was generated from the following file: