UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UserDefinedStructEditorUtils.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#if WITH_EDITOR
6#endif // WITH_EDITOR
9
10#include "UserDefinedStructEditorUtils.generated.h"
11
12UCLASS(MinimalAPI, Abstract)
14{
16
17#if WITH_EDITOR
18public:
19 virtual void RecreateDefaultInstance(FString* OutLog = nullptr)
20 {
21 }
22
23 virtual void ReinitializeDefaultInstance(FString* OutLog = nullptr)
24 {
25 }
26
27 virtual FProperty* FindProperty(const UUserDefinedStruct* Struct, FName Name) const
28 {
29 return nullptr;
30 }
31
32 virtual FString GetFriendlyNameForProperty(const UUserDefinedStruct* Struct, const FProperty* Property) const
33 {
34 return {};
35 }
36
37 virtual FString GetTooltip() const
38 {
39 return {};
40 }
41#endif // WITH_EDITOR
42};
43
44#if WITH_EDITOR
46{
47 // NOTIFICATION
50
52 static COREUOBJECT_API void OnStructureChanged(UUserDefinedStruct* Struct);
53
54 // VALIDATION
56 {
57 Ok,
61 NotBlueprintType,
64 };
65
67 static COREUOBJECT_API EStructureError IsStructureValid(const UScriptStruct* Struct, const UStruct* RecursionParent = nullptr, FString* OutMsg = nullptr);
68};
69#endif // WITH_EDITOR
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_DELEGATE_OneParam(DelegateName, Param1Type)
Definition DelegateCombinations.h:48
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition NameTypes.h:617
Definition UnrealType.h:174
Definition Object.h:95
Definition Class.h:1720
Definition Class.h:480
Definition UserDefinedStructEditorUtils.h:14
Definition UserDefinedStruct.h:61