Skip to content

USMAssetExporter

Module: SMAssetTools

Inherits from UObject

Inherited by USMAssetExporterJson

Public Classes

Name
struct FExportArgs
struct FExportResult

Public Types

Name
enum uint8 EExportStatus

Public Functions

Name
EExportStatus BeginExport(const FExportArgs & InExportArgs)
EExportStatus ExportCDO(const UObject * InCDO)
EExportStatus ExportNode(const UEdGraphNode * InGraphNode)
void FinishExport(USMBlueprint * InBlueprint, EExportStatus InStatus)

Protected Functions

Name
virtual EExportStatus OnBeginExport(const FExportArgs & InExportArgs)
virtual EExportStatus OnExportCDO(const UObject * InCDO)
virtual EExportStatus OnExportNode(const UEdGraphNode * InGraphNode)
virtual void OnFinishExport(USMBlueprint * InBlueprint, EExportStatus InStatus)

Public Types Documentation

enum EExportStatus

Enumerator Value Description
Success
Failure
Skipped

Public Functions Documentation

function BeginExport

EExportStatus BeginExport(
    const FExportArgs & InExportArgs
)

function ExportCDO

EExportStatus ExportCDO(
    const UObject * InCDO
)

function ExportNode

EExportStatus ExportNode(
    const UEdGraphNode * InGraphNode
)

function FinishExport

void FinishExport(
    USMBlueprint * InBlueprint,
    EExportStatus InStatus
)

Protected Functions Documentation

function OnBeginExport

inline virtual EExportStatus OnBeginExport(
    const FExportArgs & InExportArgs
)

Called before all other export methods.

Parameters:

InExportArgs
The export args to use for exporting the asset.

Return: The status of the export. Returning Failure will prevent processing from continuing.


function OnExportCDO

inline virtual EExportStatus OnExportCDO(
    const UObject * InCDO
)

Called when the class defaults are being exported.

Parameters:

InCDO
The class default object.

Return: The status of the export. Returning Failure will prevent processing from continuing.


function OnExportNode

inline virtual EExportStatus OnExportNode(
    const UEdGraphNode * InGraphNode
)

Called for every node in the graph.

Parameters:

InGraphNode
The current graph node being exported.

Return: The status of the export. Returning Failure will prevent processing from continuing.


function OnFinishExport

inline virtual void OnFinishExport(
    USMBlueprint * InBlueprint,
    EExportStatus InStatus
)

Called after all other export methods. Finish writing any data to disk here.

Parameters:

InBlueprint
The blueprint that has finished exporting.
InStatus
The status of the export.