Navigation
API > API/Plugins > API/Plugins/PCG
Base class for asset exporters. Can be extended either natively or through blueprint. Not intended to be used in non-editor builds.
| Name | UPCGAssetExporter |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/PCGAssetExporter.h |
| Include Path | #include "PCGAssetExporter.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, Abstract, Blueprintable)
class UPCGAssetExporter : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UPCGAssetExporter
Derived Classes
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Export
(
const FString& PackageName, |
Exports data to an asset based on the exporter's metadata | PCGAssetExporter.h | |
virtual TSubclassOf< UPCGDataAsset > GetAssetType() |
Drives the asset creation for the data parsed from the level, will return UPCGDataAsset by default. | PCGAssetExporter.h | |
UPackage * Update
(
const FAssetData& PCGAsset |
Updates the asset from its source data, when possible | PCGAssetExporter.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool BP_ExportToAsset
(
UPCGDataAsset* Asset |
PCGAssetExporter.h |
|
|
| Returns the subtype of PCG data asset generated by the Level To Asset process. | PCGAssetExporter.h |
|
|
void DuplicateAndReOuterData
(
UPCGDataAsset* Asset |
Duplicates data that is outered to the transient package so it is properly saved | PCGAssetExporter.h | |
virtual bool ExportAsset
(
const FString& PackageName, |
Exports data to an asset based on the exporter's metadata | PCGAssetExporter.h | |
virtual void SerializeMetadata
(
FArchive& Ar |
Sets up the exporter prior to performing update | PCGAssetExporter.h | |
void SerializeMetadataFromAsset
(
const FAssetData& PCGAsset |
Loads exporter metadata from the asset | PCGAssetExporter.h | |
void SerializeMetadataToAsset
(
const FAssetData& PCGAsset |
Saves exporter metadata to the asset | PCGAssetExporter.h | |
virtual UPackage * UpdateAsset
(
const FAssetData& PCGAsset |
Updates the asset from its source data, when possible | PCGAssetExporter.h |