Navigation
API > API/Plugins > API/Plugins/PFMExporter > API/Plugins/PFMExporter/IPFMExporterBlueprintAPI
Description
Generate PFM file from static mesh. The UV channel must be defined, assigned range 0..1 used as screen surface. Origin assigned by function arg, or by default used mesh parent.
| Name | ExportPFM |
| Type | function |
| Header File | /Engine/Plugins/Runtime/WarpUtils/Source/PFMExporter/Public/Blueprints/IPFMExporterBlueprintAPI.h |
| Include Path | #include "Blueprints/IPFMExporterBlueprintAPI.h" |
UFUNCTION (BlueprintCallable, Meta=(DisplayName="Export Static Mesh to PFM file"),
Category="PFMExporter")
bool ExportPFM
(
UStaticMeshComponent * SrcMesh,
USceneComponent * Origin,
int Width,
int Height,
const FString & FileName
)
true, if success
Parameters
| Name | Remarks |
|---|---|
| SrcMesh | Static mesh with assigned UV channel, used as export source of PFM file |
| Origin | (Optional) Custom cave origin node, if not defined, used SrcMesh parent |
| Width | Output PFM mesh texture width |
| Height | Output PFM mesh texture height |
| FileName | Output PFM file name |