FObjectProperty::ConvertFromType

Allows a property to implement backwards compatibility handling for tagged properties

Windows
MacOS
Linux

Override Hierarchy

FProperty::ConvertFromType()

FObjectProperty::ConvertFromType()

References

Module

CoreUObject

Header

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

Include

#include "UObject/UnrealType.h"

Source

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

Syntax

virtual EConvertFromTypeResult ConvertFromType
(
    const FPropertyTag & Tag,
    FStructuredArchive::FSlot Slot,
    uint8 * Data,
    UStruct * DefaultsStruct
)

Remarks

Allows a property to implement backwards compatibility handling for tagged properties

Returns

A state which tells the tagged property system how the property dealt with the data. Converted: the function has handled the tag. CannotConvert: the tag is not something that the property can convert. UseSerializeItem: no conversion was done on the property - this can mean that the tag is correct and normal serialization applies or that the tag is incompatible.

Parameters

Parameter

Description

Tag

property tag of the loading data

Ar

the archive the data is being loaded from

Data

DefaultsStruct

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