UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TextProperty.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
5#include "CoreTypes.h"
8#include "UObject/Field.h"
9#include "UObject/NameTypes.h"
12#include "UObject/UnrealType.h"
13
14class FOutputDevice;
15class UField;
16class UObject;
17class UStruct;
18struct FPropertyTag;
19
20class FTextProperty : public TProperty<FText, FProperty>
21{
23
24public:
25
26 typedef Super::TTypeFundamentals TTypeFundamentals;
27 typedef TTypeFundamentals::TCppType TCppType;
28
30
36 COREUOBJECT_API FTextProperty(FFieldVariant InOwner, const UECodeGen_Private::FTextPropertyParams& Prop);
37
38#if UE_WITH_CONSTINIT_UOBJECT
39 explicit consteval FTextProperty(UE::CodeGen::ConstInit::FPropertyParams InBaseParams)
41 {
42 }
43#endif
44
45#if WITH_EDITORONLY_DATA
46 explicit FTextProperty(UField* InField);
47#endif // WITH_EDITORONLY_DATA
48
49 // FProperty interface
50 COREUOBJECT_API virtual EConvertFromTypeResult ConvertFromType(const FPropertyTag& Tag, FStructuredArchive::FSlot Slot, uint8* Data, const UStruct* DefaultsStruct, const uint8* Defaults) override;
51 COREUOBJECT_API virtual bool Identical( const void* A, const void* B, uint32 PortFlags ) const override;
52 COREUOBJECT_API virtual void SerializeItem(FStructuredArchive::FSlot Slot, void* Value, void const* Defaults) const override;
53protected:
54 COREUOBJECT_API virtual void ExportText_Internal( FString& ValueStr, const void* PropertyValueOrContainer, EPropertyPointerType PropertyPointerType, const void* DefaultValue, UObject* Parent, int32 PortFlags, UObject* ExportRootScope ) const override;
56public:
57 // End of FProperty interface
58
65 static COREUOBJECT_API bool Identical_Implementation(const FText& A, const FText& B, uint32 PortFlags);
67};
#define DECLARE_FIELD_API(TClass, TSuperClass, TStaticFlags, TRequiredAPI)
Definition Field.h:257
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
@ CASTCLASS_FTextProperty
Definition ObjectMacros.h:366
EObjectFlags
Definition ObjectMacros.h:552
EPropertyPointerType
Definition UnrealType.h:156
EConvertFromTypeResult
Definition UnrealType.h:130
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Field.h:353
Definition NameTypes.h:617
Definition OutputDevice.h:133
Definition UnrealType.h:174
virtual void virtual ExportText_Internal(FString &ValueStr, const void *PropertyValueOrContainer, EPropertyPointerType PointerType, const void *DefaultValue, UObject *Parent, int32 PortFlags, UObject *ExportRootScope=nullptr) const PURE_VIRTUAL(FProperty const TCHAR ImportText_Internal)(const TCHAR *Buffer, void *ContainerOrPropertyPtr, EPropertyPointerType PointerType, UObject *OwnerObject, int32 PortFlags, FOutputDevice *ErrorText) const PURE_VIRTUAL(FProperty
Definition UnrealType.h:719
virtual bool Identical(const void *A, const void *B, uint32 PortFlags=0) const PURE_VIRTUAL(FProperty
Definition UnrealType.h:515
Definition StructuredArchiveSlots.h:52
Definition TextProperty.h:21
virtual COREUOBJECT_API void ExportText_Internal(FString &ValueStr, const void *PropertyValueOrContainer, EPropertyPointerType PropertyPointerType, const void *DefaultValue, UObject *Parent, int32 PortFlags, UObject *ExportRootScope) const override
Definition TextProperty.cpp:141
TTypeFundamentals::TCppType TCppType
Definition TextProperty.h:27
virtual COREUOBJECT_API EConvertFromTypeResult ConvertFromType(const FPropertyTag &Tag, FStructuredArchive::FSlot Slot, uint8 *Data, const UStruct *DefaultsStruct, const uint8 *Defaults) override
Definition TextProperty.cpp:32
static COREUOBJECT_API bool Identical_Implementation(const FText &A, const FText &B, uint32 PortFlags)
Definition TextProperty.cpp:63
Super::TTypeFundamentals TTypeFundamentals
Definition TextProperty.h:26
EIdenticalLexicalCompareMethod
Definition TextProperty.h:60
virtual COREUOBJECT_API void SerializeItem(FStructuredArchive::FSlot Slot, void *Value, void const *Defaults) const override
Definition TextProperty.cpp:135
Definition Text.h:385
Definition UnrealType.h:1538
Definition Class.h:181
Definition Object.h:95
Definition Class.h:480
Definition PropertyTag.h:38