UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PropertyText.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
#include "
CoreMinimal.h
"
5
#include "
UObject/NameTypes.h
"
6
#include "
Internationalization/Text.h
"
7
#include "
UObject/ObjectMacros.h
"
8
#include "
UObject/ScriptMacros.h
"
9
10
#include "PropertyText.generated.h"
11
12
// Structs that support UPROPERTY(..., meta = (GetOptions = <function>)) on FName and FString
13
// properties which allows the display name to be set separately from the value for a given FName or FString
14
//
15
// Example usage:
16
//
17
// UCLASS()
18
// class UMyClass : public UObject
19
// {
20
// GENERATED_BODY()
21
// public:
22
// UPROPERTY(EditAnywhere, meta = (GetOptions = GetFooOptions))
23
// FName Foo;
24
//
25
// UFUNCTION()
26
// static TArray<FPropertyTextFName> GetFooOptions();
27
// };
28
29
34
USTRUCT
()
35
struct
FPropertyTextFName
36
{
37
GENERATED_BODY
()
38
39
FName
ValueString;
40
FText
DisplayName;
41
};
42
47
USTRUCT
()
48
struct
FPropertyTextString
49
{
50
GENERATED_BODY
()
51
FString ValueString;
52
FText
DisplayName;
53
};
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
NameTypes.h
ObjectMacros.h
GENERATED_BODY
#define GENERATED_BODY(...)
Definition
ObjectMacros.h:765
USTRUCT
#define USTRUCT(...)
Definition
ObjectMacros.h:746
ScriptMacros.h
Text.h
FName
Definition
NameTypes.h:617
FText
Definition
Text.h:385
FPropertyTextFName
Definition
PropertyText.h:36
FPropertyTextString
Definition
PropertyText.h:49
Engine
Source
Runtime
CoreUObject
Public
UObject
PropertyText.h
Generated by
1.9.8