FDatasmithMeshExporter::ExportToUObject

Exports a [FDatasmithMesh](API\Runtime\DatasmithCore\FDatasmithMesh) as a [UObject](API\Runtime\CoreUObject\UObject\UObject) and link it to the given IDatasmithMeshElementElement.

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

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

Remarks

Exports a FDatasmithMesh as a UObject and link it to the given IDatasmithMeshElementElement.

Returns

True if export was successful.

Parameters

Parameter

Description

MeshElement

The existing MeshElement for with we want to export a FDatasmithMesh, the name of the MeshElement will determine the name of the exported file.

Filepath

The path where the resulting file will be written

Mesh

The mesh to export

CollisionMesh

An optional collision mesh

LightmapUV

The UV generation export option

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback