Class AssetsExportingManager
Assets Importing service allows to import or create new assets
Inheritance
AssetsExportingManager
Assembly: FlaxEngine.dll
File: Engine/ContentExporters/AssetsExportingManager.h
Syntax
public class AssetsExportingManager
Fields
Exporters
The asset exporting callbacks. Identified by the asset typename.
Declaration
public static Dictionary<String, ExportAssetFunction> Exporters
Field Value
Dictionary<String, ExportAssetFunction>
|
Methods
CanExport(const String& inputPath)
Checks if the asset at the given location can be exports.
Declaration
public static bool CanExport(const String& inputPath)
Parameters
String
inputPath
The input asset path. |
Returns
bool
True if can export it, otherwise false. |
Export(const ExportAssetFunction& callback, const String& inputPath, const String& outputFolder, void* arg=nullptr)
Exports the asset.
Declaration
public static bool Export(const ExportAssetFunction& callback, const String& inputPath, const String& outputFolder, void* arg=nullptr)
Parameters
ExportAssetFunction
callback
The custom callback. |
String
inputPath
The input asset path. |
String
outputFolder
The output path. |
void
arg
The custom argument. |
Returns
bool
True if fails, otherwise false. |
Export(const String& inputPath, const String& outputFolder, void* arg=nullptr)
Exports the asset.
Declaration
public static bool Export(const String& inputPath, const String& outputFolder, void* arg=nullptr)
Parameters
String
inputPath
The input asset path. |
String
outputFolder
The output path. |
void
arg
The custom argument. |
Returns
bool
True if fails, otherwise false. |
GetExporter(const String& typeName)
Gets the asset export for thee given asset typename.
Declaration
public static ExportAssetFunction* GetExporter(const String& typeName)
Parameters
String
typeName
The asset typename. |
Returns
ExportAssetFunction
Exporter or null if not found. |