FDatasmithMeshExporter::ExportToUObject

Exports the DatasmithMesh as a [UObject](API\Runtime\CoreUObject\UObject\UObject).

Windows
MacOS
Linux

References

Module

DatasmithExporter

Header

/Engine/Source/Developer/Datasmith/DatasmithExporter/Public/DatasmithMeshExporter.h

Include

#include "DatasmithMeshExporter.h"

Source

/Engine/Source/Developer/Datasmith/DatasmithExporter/Private/DatasmithMeshExporter.cpp

Syntax

TSharedPtr< IDatasmithMeshElement > ExportToUObject
(
    const TCHAR * Filepath,
    const TCHAR * Filename,
    FDatasmithMesh & Mesh,
    FDatasmithMesh * CollisionMesh,
    EDSExportLightmapUV LightmapUV
)

Remarks

Exports the DatasmithMesh as a UObject.

Returns

A IDatasmithMeshElement that refers to the exported file

Parameters

Parameter

Description

Filepath

The path where the resulting file will be written

Filename

The name of the file to export to, without any path or extension

Mesh

The mesh to export

CollisionMesh

An optional collision mesh

LightmapUV

The UV generation export option

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss