UScriptStruct::ImportText

Sets value of script struct based on imported string

Windows
MacOS
Linux

Syntax

const TCHAR * ImportText
(
    const TCHAR * Buffer,
    void * Value,
    UObject * OwnerObject,
    int32 PortFlags,
    FOutputDevice * ErrorText,
    const FString & StructName,
    bool bAllowNativeOverride
)

Remarks

Sets value of script struct based on imported string

Returns

Buffer after parsing has succeeded, or NULL on failure

Parameters

Parameter

Description

Buffer

String to read text data out of

Value

Struct that will be modified

OwnerObject

UObject that contains this struct

PortFlags

EPropertyPortFlags controlling import behavior

ErrorText

What to print import errors to

StructName

Name of struct, used in error display

bAllowNativeOverride

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

References

Module

CoreUObject

Header

Runtime/CoreUObject/Public/UObject/Class.h

Source

Runtime/CoreUObject/Private/UObject/Class.cpp

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