You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb francis.hurteau, jason.walter #jira UE-142171 #preflight 62067326ad10bdb30a9f0361 #lockdown alejandro.arango #ROBOMERGE-AUTHOR: simon.therriault #ROBOMERGE-SOURCE: CL 18957877 in //UE5/Release-5.0/... via CL 18958785 via CL 18959502 #ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589) [CL 18959726 by simon therriault in ue5-main branch]
32 lines
646 B
C++
32 lines
646 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
namespace StructSerializationUtilities
|
|
{
|
|
static bool IsLWCType(const UStruct* Type)
|
|
{
|
|
static TSet<FName> LWCTypes = { NAME_Vector
|
|
, NAME_Vector2D
|
|
, NAME_Vector4
|
|
, NAME_Matrix
|
|
, NAME_Plane
|
|
, NAME_Quat
|
|
, NAME_Rotator
|
|
, NAME_Transform
|
|
, NAME_Box
|
|
, NAME_Box2D
|
|
, NAME_BoxSphereBounds
|
|
, FName(TEXT("OrientedBox"))};
|
|
if (Type)
|
|
{
|
|
const FName StructName = Type->GetFName();
|
|
return LWCTypes.Contains(StructName);
|
|
}
|
|
|
|
return false;
|
|
}
|
|
};
|