FProperty::ImportSingleProperty

Parses and imports a text definition of a single property's value (if array, may be an individual element) also includes parsing of special operations for array properties (Add/Remove/RemoveIndex/Empty)

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/UnrealType.h"

Source

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

Syntax

static const TCHAR * ImportSingleProperty
(
    const TCHAR * Str,
    void * DestData,
    class UStruct * ObjectStruct,
    UObject * SubobjectOuter,
    int32 PortFlags,
    FOutputDevice * Warn,
    TArray< struct FDefinedProperty > & DefinedProperties
)

Remarks

Parses and imports a text definition of a single property's value (if array, may be an individual element) also includes parsing of special operations for array properties (Add/Remove/RemoveIndex/Empty)

Returns

pointer to remaining text in the stream (even on failure, but on failure it may not be advanced past the entire key/value pair)

Parameters

Parameter

Description

Str

the string to parse

DestData

base location the parsed property should place its data (DestData + ParsedProperty->Offset)

ObjectStruct

the struct containing the valid fields

SubobjectOuter

owner of DestData and any subobjects within it

PortFlags

property import flags

Warn

output device for any error messages

DefinedProperties

(out) list of properties/indices that have been parsed by previous calls, so duplicate definitions cause an error

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