Skip to content

FSMAssetExportManager

Module: SMAssetTools

Public Functions

Name
DECLARE_MULTICAST_DELEGATE_OneParam(FOnAssetExportedSignature , const USMAssetExporter::FExportResult & )
virtual ~FSMAssetExportManager()
void RegisterExporter(const FString & InExporterName, UClass * InExporterClass)
void UnregisterExporter(const FString & InExporterName)
USMAssetExporter::FExportResult ExportAsset(const USMAssetExporter::FExportArgs & InExportArgs)
TArray< FString > GetSupportedExportTypes() const
FOnAssetExportedSignature & OnAssetExported()

Public Functions Documentation

function DECLARE_MULTICAST_DELEGATE_OneParam

DECLARE_MULTICAST_DELEGATE_OneParam(
    FOnAssetExportedSignature ,
    const USMAssetExporter::FExportResult & 
)

function ~FSMAssetExportManager

inline virtual ~FSMAssetExportManager()

function RegisterExporter

void RegisterExporter(
    const FString & InExporterName,
    UClass * InExporterClass
)

Registers an exporter to use with state machine assets.

Parameters:

InExporterName
The name to register the exporter under, such as "json".
InExporterClass
The class to instantiate when the exporter is used.

function UnregisterExporter

void UnregisterExporter(
    const FString & InExporterName
)

Unregisters an exporter for use with state machine assets.

Parameters:

InExporterName
The name of the previously registered exporter.

function ExportAsset

USMAssetExporter::FExportResult ExportAsset(
    const USMAssetExporter::FExportArgs & InExportArgs
)

Export a state machine blueprint. Export type is determined automatically.

Parameters:

InExportArgs
Arguments for configuring the export.

Return: The result of the export.


function GetSupportedExportTypes

TArray< FString > GetSupportedExportTypes() const

Return a list of all supported export types.


function OnAssetExported

inline FOnAssetExportedSignature & OnAssetExported()

Called when an asset has been exported.


Private Attributes Documentation

variable MappedExporters

TMap< FString, TSubclassOf< USMAssetExporter > > MappedExporters;

variable OnAssetExportedEvent

FOnAssetExportedSignature OnAssetExportedEvent;