UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
BlueprintTypeConversions.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6
7#include "BlueprintTypeConversions.generated.h"
8
37
38#define MAKE_CONVERSION_EXEC_FUNCTION_NAME(SourceType, DestType) \
39 execConvert##SourceType##To##DestType
40
41#define DECLARE_CONVERSION_FUNCTIONS(BaseType, VariantType1, VariantType2) \
42 DECLARE_FUNCTION(MAKE_CONVERSION_EXEC_FUNCTION_NAME(VariantType1, VariantType2)); \
43 DECLARE_FUNCTION(MAKE_CONVERSION_EXEC_FUNCTION_NAME(VariantType2, VariantType1));
44
45UCLASS(MinimalAPI)
47{
48public:
50
51 // Container conversions
52
53 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
54 static ENGINE_API TArray<int> ConvertArrayType(const TArray<int>& InArray);
56
57 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
58 static ENGINE_API TSet<int> ConvertSetType(const TSet<int>& InSet);
60
61 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
62 static ENGINE_API TMap<int, int> ConvertMapType(const TMap<int, int>& InMap);
64
65
66 // Custom struct conversions
67
69
70 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
71 static ENGINE_API int32 ConvertFVector3dToFVector3f(int32 InFromData);
72
73 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
74 static ENGINE_API int32 ConvertFVector3fToFVector3d(int32 InFromData);
75
77
78 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
79 static ENGINE_API int32 ConvertFVector2dToFVector2f(int32 InFromData);
80
81 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
82 static ENGINE_API int32 ConvertFVector2fToFVector2d(int32 InFromData);
83
85
86 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
87 static ENGINE_API int32 ConvertFVector4dToFVector4f(int32 InFromData);
88
89 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
90 static ENGINE_API int32 ConvertFVector4fToFVector4d(int32 InFromData);
91
92
94
95 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
96 static ENGINE_API int32 ConvertFPlane4dToFPlane4f(int32 InFromData);
97
98 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
99 static ENGINE_API int32 ConvertFPlane4fToFPlane4d(int32 InFromData);
100
101
103
104 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
105 static ENGINE_API int32 ConvertFQuat4dToFQuat4f(int32 InFromData);
106
107 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
108 static ENGINE_API int32 ConvertFQuat4fToFQuat4d(int32 InFromData);
109
110
112
113 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
114 static ENGINE_API int32 ConvertFRotator3dToFRotator3f(int32 InFromData);
115
116 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
117 static ENGINE_API int32 ConvertFRotator3fToFRotator3d(int32 InFromData);
118
119
121
122 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
123 static ENGINE_API int32 ConvertFTransform3dToFTransform3f(int32 InFromData);
124
125 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
126 static ENGINE_API int32 ConvertFTransform3fToFTransform3d(int32 InFromData);
127
128
130
131 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
132 static ENGINE_API int32 ConvertFMatrix44dToFMatrix44f(int32 InFromData);
133
134 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
135 static ENGINE_API int32 ConvertFMatrix44fToFMatrix44d(int32 InFromData);
136
138
139 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
140 static ENGINE_API int32 ConvertFBox2dToFBox2f(int32 InFromData);
141
142 UFUNCTION(CustomThunk, meta = (BlueprintInternalUseOnly = "true"))
143 static ENGINE_API int32 ConvertFBox2fToFBox2d(int32 InFromData);
144};
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
#define DECLARE_CONVERSION_FUNCTIONS(BaseType, VariantType1, VariantType2)
Definition BlueprintTypeConversions.h:41
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
return true
Definition ExternalRpcRegistry.cpp:601
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define DECLARE_FUNCTION(func)
Definition ObjectMacros.h:783
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Array.h:670
Definition BlueprintTypeConversions.h:47
Definition BlueprintTypeConversions.h:15
static ENGINE_API const FStructConversionTable & Get()
Definition BlueprintTypeConversions.cpp:187
ENGINE_API TOptional< UE::Kismet::BlueprintTypeConversions::ConversionFunctionPairT > GetConversionFunction(const UScriptStruct *InFrom, const UScriptStruct *InTo) const
Definition BlueprintTypeConversions.cpp:197
Definition Object.h:95
Definition Class.h:1720
Definition BlueprintTypeConversions.h:10
void(*)(const void *, void *) ConversionFunctionT
Definition BlueprintTypeConversions.h:11
Definition Optional.h:131
Definition Tuple.h:652