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"
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
34USTRUCT()
36{
38
39 FName ValueString;
40 FText DisplayName;
41};
42
47USTRUCT()
49{
51 FString ValueString;
52 FText DisplayName;
53};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define USTRUCT(...)
Definition ObjectMacros.h:746
Definition NameTypes.h:617
Definition Text.h:385
Definition PropertyText.h:36
Definition PropertyText.h:49