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

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