Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject > API/Runtime/CoreUObject/UObject/UScriptStruct
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 |
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
| Name | 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 |