UProperty::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

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