UScriptStruct::ExportText

Export script struct to a string that can later be imported

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h

Include

#include "UObject/Class.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/Class.cpp

Syntax

void ExportText
(
    FString & ValueStr,
    const void * Value,
    const void * Defaults,
    UObject * OwnerObject,
    int32 PortFlags,
    UObject * ExportRootScope,
    bool bAllowNativeOverride
) const

Remarks

Export script struct to a string that can later be imported

Parameters

Parameter

Description

ValueStr

String to write to

Value

Actual struct being exported

Defaults

Default value for this struct, pass nullptr to not use defaults

OwnerObject

UObject that contains this struct

PortFlags

EPropertyPortFlags controlling export behavior

ExportRootScope

The scope to create relative paths from, if the PPF_ExportsNotFullyQualified flag is passed in. If NULL, the package containing the object will be used instead.

bAllowNativeOverride

If true, will try to run native version of export text on the struct

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