UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
StructSerializationUtilities.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
UObject/Class.h
"
6
7
namespace
StructSerializationUtilities
8
{
9
static
bool
IsLWCType
(
const
UStruct
* Type)
10
{
11
static
TSet<FName>
LWCTypes = {
NAME_Vector
12
,
NAME_Vector2D
13
,
NAME_Vector4
14
,
NAME_Matrix
15
,
NAME_Plane
16
,
NAME_Quat
17
,
NAME_Rotator
18
,
NAME_Transform
19
,
NAME_Box
20
,
NAME_Box2D
21
,
NAME_BoxSphereBounds
22
,
FName
(
TEXT
(
"OrientedBox"
))};
23
if
(Type)
24
{
25
const
FName
StructName = Type->GetFName();
26
return
LWCTypes.Contains(StructName);
27
}
28
29
return
false
;
30
}
31
};
Class.h
TEXT
#define TEXT(x)
Definition
Platform.h:1272
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
IsLWCType
bool IsLWCType(EMaterialValueType InType)
Definition
MaterialShared.h:240
FName
Definition
NameTypes.h:617
UStruct
Definition
Class.h:480
StructSerializationUtilities
Definition
StructSerializationUtilities.h:8
Engine
Source
Runtime
Serialization
Private
StructSerializationUtilities.h
Generated by
1.9.8