其他分享
首页 > 其他分享> > UE4结构体反射

UE4结构体反射

作者:互联网

.h

//结构体展开
struct FMyStruct
{
//	GENERATED_USTRUCT_BODY()
//#define PluginCore_Source_PluginCore_Public_MyStruct_h_9_GENERATED_BODY 展开得到
	friend struct Z_Construct_UScriptStruct_FMyStruct_Statics;	//创建结构体反射对象 UScriptStruct
	PLUGINCORE_API static class UScriptStruct* StaticStruct();	//反射结构体
};

结构体.cpp

// Cross Module References
//构造ScriptStruct
PLUGINCORE_API UScriptStruct* Z_Construct_UScriptStruct_FMyStruct();
//构造Package包
UPackage* Z_Construct_UPackage__Script_PluginCore();

// End Cross Module References
class UScriptStruct* FMyStruct::StaticStruct()
{
	static class UScriptStruct* Singleton = NULL;
	if (!Singleton)
	{
		extern PLUGINCORE_API uint32 Get_Z_Construct_UScriptStruct_FMyStruct_CRC();
		Singleton = GetStaticStruct(
			Z_Construct_UScriptStruct_FMyStruct,
			Z_Construct_UPackage__Script_PluginCore(), 
			TEXT("MyStruct"),
			sizeof(FMyStruct), 
			Get_Z_Construct_UScriptStruct_FMyStruct_CRC());
	}

	return Singleton;
}

static FCompiledInDeferStruct Z_CompiledInDeferStruct_UScriptStruct_FMyStruct(
	FMyStruct::StaticStruct, 
	TEXT("/Script/PluginCore"), 
	TEXT("MyStruct"),
	false, nullptr, nullptr);//延迟注册
static struct FScriptStruct_PluginCore_StaticRegisterNativesFMyStruct
{
	FScriptStruct_PluginCore_StaticRegisterNativesFMyStruct()
	{
		//定义一个静态变量用于存储一个CppStructOps
		UScriptStruct::DeferCppStructOps(FName(TEXT("MyStruct")), new UScriptStruct::TCppStructOps<FMyStruct>);
	}
} ScriptStruct_PluginCore_StaticRegisterNativesFMyStruct; //static注册

struct Z_Construct_UScriptStruct_FMyStruct_Statics
{
#if WITH_METADATA
	static const UE4CodeGen_Private::FMetaDataPairParam Struct_MetaDataParams[];
#endif
	static void* NewStructOps();
	static const UE4CodeGen_Private::FStructParams ReturnStructParams;
};

#if WITH_METADATA
//添加元数据提供给编辑器使用
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UScriptStruct_FMyStruct_Statics::Struct_MetaDataParams[] = {
	{ "BlueprintType", "true" },
	{ "IsBlueprintBase", "true" },
	{ "ModuleRelativePath", "Public/MyStruct.h" },
};

#endif
void* Z_Construct_UScriptStruct_FMyStruct_Statics::NewStructOps()
{
	//用模板管理对C++结构的动态访问和销毁
	return (UScriptStruct::ICppStructOps*)new UScriptStruct::TCppStructOps<FMyStruct>();
}

const UE4CodeGen_Private::FStructParams Z_Construct_UScriptStruct_FMyStruct_Statics::ReturnStructParams = {
	(UObject* (*)())Z_Construct_UPackage__Script_PluginCore,
	nullptr,
	&NewStructOps,
	"MyStruct",
	RF_Public | RF_Transient | RF_MarkAsNative,
	EStructFlags(0x00000001),
	sizeof(FMyStruct),
	alignof(FMyStruct),
	nullptr, 0,
	METADATA_PARAMS(Z_Construct_UScriptStruct_FMyStruct_Statics::Struct_MetaDataParams, ARRAY_COUNT(Z_Construct_UScriptStruct_FMyStruct_Statics::Struct_MetaDataParams))
};

//构造UScriptStruct
UScriptStruct* Z_Construct_UScriptStruct_FMyStruct()
{
#if WITH_HOT_RELOAD
	extern uint32 Get_Z_Construct_UScriptStruct_FMyStruct_CRC();
	UPackage* Outer = Z_Construct_UPackage__Script_PluginCore();
	static UScriptStruct* ReturnStruct = FindExistingStructIfHotReloadOrDynamic(
		Outer, 
		TEXT("MyStruct"), 
		sizeof(FMyStruct), 
		Get_Z_Construct_UScriptStruct_FMyStruct_CRC(),
		false);
#else
	static UScriptStruct* ReturnStruct = nullptr;
#endif
	if (!ReturnStruct)
	{
		UE4CodeGen_Private::ConstructUScriptStruct(ReturnStruct, Z_Construct_UScriptStruct_FMyStruct_Statics::ReturnStructParams);
	}
	return ReturnStruct;
}

uint32 Get_Z_Construct_UScriptStruct_FMyStruct_CRC() 
{ 
	return 3269280129U;
}

结构体变量.cpp

//结构体变量
//
#include "UObject/GeneratedCppIncludes.h"
#include "PluginCore/Public/MyStruct.h"
#ifdef _MSC_VER
#pragma warning (push)
#pragma warning (disable : 4883)
#endif
PRAGMA_DISABLE_DEPRECATION_WARNINGS
void EmptyLinkFunctionForGeneratedCodeMyStruct()
{}

// Cross Module References
PLUGINCORE_API UScriptStruct* Z_Construct_UScriptStruct_FMyStruct();
UPackage* Z_Construct_UPackage__Script_PluginCore();
ENGINE_API UClass* Z_Construct_UClass_UBoxComponent_NoRegister();

// End Cross Module References
class UScriptStruct* FMyStruct::StaticStruct()
{
	static class UScriptStruct* Singleton = NULL;
	if (!Singleton)
	{
		extern PLUGINCORE_API uint32 Get_Z_Construct_UScriptStruct_FMyStruct_CRC();
		Singleton = GetStaticStruct(
			Z_Construct_UScriptStruct_FMyStruct, 
			Z_Construct_UPackage__Script_PluginCore(), 
			TEXT("MyStruct"), 
			sizeof(FMyStruct), 
			Get_Z_Construct_UScriptStruct_FMyStruct_CRC());
	}

	return Singleton;
}

static FCompiledInDeferStruct Z_CompiledInDeferStruct_UScriptStruct_FMyStruct(
	FMyStruct::StaticStruct, 
	TEXT("/Script/PluginCore"),
	TEXT("MyStruct"),
	false, nullptr, nullptr);
static struct FScriptStruct_PluginCore_StaticRegisterNativesFMyStruct
{
	FScriptStruct_PluginCore_StaticRegisterNativesFMyStruct()
	{
		UScriptStruct::DeferCppStructOps(FName(TEXT("MyStruct")), new UScriptStruct::TCppStructOps<FMyStruct>);
	}
} ScriptStruct_PluginCore_StaticRegisterNativesFMyStruct;

struct Z_Construct_UScriptStruct_FMyStruct_Statics
{
#if WITH_METADATA
	static const UE4CodeGen_Private::FMetaDataPairParam Struct_MetaDataParams[];
#endif
	static void* NewStructOps();
#if WITH_METADATA
	static const UE4CodeGen_Private::FMetaDataPairParam NewProp_MyBoxComponent5_MetaData[];
#endif
	static const UE4CodeGen_Private::FMapPropertyParams NewProp_MyBoxComponent5;
	static const UE4CodeGen_Private::FStrPropertyParams NewProp_MyBoxComponent5_Key_KeyProp;
	static const UE4CodeGen_Private::FIntPropertyParams NewProp_MyBoxComponent5_ValueProp;
#if WITH_METADATA
	static const UE4CodeGen_Private::FMetaDataPairParam NewProp_MyBoxComponent4_MetaData[];
#endif
	static const UE4CodeGen_Private::FIntPropertyParams NewProp_MyBoxComponent4;
#if WITH_METADATA
	static const UE4CodeGen_Private::FMetaDataPairParam NewProp_MyBoxComponent3_MetaData[];
#endif
	static const UE4CodeGen_Private::FFloatPropertyParams NewProp_MyBoxComponent3;
#if WITH_METADATA
	static const UE4CodeGen_Private::FMetaDataPairParam NewProp_MyBoxComponent2_MetaData[];
#endif
	static const UE4CodeGen_Private::FObjectPropertyParams NewProp_MyBoxComponent2;
	static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
	static const UE4CodeGen_Private::FStructParams ReturnStructParams;
};

#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UScriptStruct_FMyStruct_Statics::Struct_MetaDataParams[] =
{
	{ "BlueprintType", "true" },
	{ "IsBlueprintBase", "true" },
	{ "ModuleRelativePath", "Public/MyStruct.h" },
};
#endif

void* Z_Construct_UScriptStruct_FMyStruct_Statics::NewStructOps()
{
	return (UScriptStruct::ICppStructOps*)new UScriptStruct::TCppStructOps<FMyStruct>();
}

#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent5_MetaData[] =
{
	{ "Category", "BoxComponent" },
	{ "ModuleRelativePath", "Public/MyStruct.h" },
};

#endif
const UE4CodeGen_Private::FMapPropertyParams Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent5 = 
{
	UE4CodeGen_Private::EPropertyClass::Map,
	"MyBoxComponent5",
	RF_Public | RF_Transient | RF_MarkAsNative,
	(EPropertyFlags)0x0010000000010001,
	1, nullptr, 
	STRUCT_OFFSET(FMyStruct, MyBoxComponent5),
	METADATA_PARAMS(Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent5_MetaData,
	ARRAY_COUNT(Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent5_MetaData)) 
};

const UE4CodeGen_Private::FStrPropertyParams Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent5_Key_KeyProp =
{
	UE4CodeGen_Private::EPropertyClass::Str,
	"MyBoxComponent5_Key",
	RF_Public | RF_Transient | RF_MarkAsNative,
	(EPropertyFlags)0x0000000000000001,
	1, nullptr, 0, 
	METADATA_PARAMS(nullptr, 0) 
};

const UE4CodeGen_Private::FIntPropertyParams Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent5_ValueProp =
{
	UE4CodeGen_Private::EPropertyClass::Int, 
	"MyBoxComponent5", RF_Public | RF_Transient | RF_MarkAsNative,
	(EPropertyFlags)0x0000000000000001, 1,
	nullptr, 1, METADATA_PARAMS(nullptr, 0)
};

#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent4_MetaData[] = 
{
	{ "Category", "BoxComponent" },
	{ "ModuleRelativePath", "Public/MyStruct.h" },
};
#endif

const UE4CodeGen_Private::FIntPropertyParams Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent4 = 
{
	UE4CodeGen_Private::EPropertyClass::Int, 
	"MyBoxComponent4",
	RF_Public | RF_Transient | RF_MarkAsNative, 
	(EPropertyFlags)0x0010000000010001, 1, nullptr, 
	STRUCT_OFFSET(FMyStruct, MyBoxComponent4), 
	METADATA_PARAMS(Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent4_MetaData,
	ARRAY_COUNT(Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent4_MetaData))
};

#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent3_MetaData[] = 
{
	{ "Category", "BoxComponent" },
	{ "ModuleRelativePath", "Public/MyStruct.h" },
};
#endif

const UE4CodeGen_Private::FFloatPropertyParams Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent3 = 
{
	UE4CodeGen_Private::EPropertyClass::Float, 
	"MyBoxComponent3", 
	RF_Public | RF_Transient | RF_MarkAsNative, 
	(EPropertyFlags)0x0010000000010001, 1, nullptr, 
	STRUCT_OFFSET(FMyStruct, MyBoxComponent3),
	METADATA_PARAMS(Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent3_MetaData, 
	ARRAY_COUNT(Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent3_MetaData)) 
};

#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent2_MetaData[] =
{
	{ "Category", "BoxComponent" },
	{ "EditInline", "true" },
	{ "ModuleRelativePath", "Public/MyStruct.h" },
};
#endif

const UE4CodeGen_Private::FObjectPropertyParams Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent2 =
{ 
	UE4CodeGen_Private::EPropertyClass::Object,
	"MyBoxComponent2",
	RF_Public | RF_Transient | RF_MarkAsNative,
	(EPropertyFlags)0x0010000000090009, 1, nullptr,
	STRUCT_OFFSET(FMyStruct, MyBoxComponent2),
	Z_Construct_UClass_UBoxComponent_NoRegister, 
	METADATA_PARAMS(Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent2_MetaData, 
	ARRAY_COUNT(Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent2_MetaData)) 
};

const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UScriptStruct_FMyStruct_Statics::PropPointers[] =
{
	(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent5,
	(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent5_Key_KeyProp,
	(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent5_ValueProp,
	(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent4,
	(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent3,
	(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_MyBoxComponent2,
};

const UE4CodeGen_Private::FStructParams Z_Construct_UScriptStruct_FMyStruct_Statics::ReturnStructParams =
{
	(UObject* (*)())Z_Construct_UPackage__Script_PluginCore,
	nullptr,
	&NewStructOps,
	"MyStruct",
	RF_Public | RF_Transient | RF_MarkAsNative,
	EStructFlags(0x00000005),
	sizeof(FMyStruct),
	alignof(FMyStruct),
	Z_Construct_UScriptStruct_FMyStruct_Statics::PropPointers, 
	ARRAY_COUNT(Z_Construct_UScriptStruct_FMyStruct_Statics::PropPointers),
	METADATA_PARAMS(Z_Construct_UScriptStruct_FMyStruct_Statics::Struct_MetaDataParams,
	ARRAY_COUNT(Z_Construct_UScriptStruct_FMyStruct_Statics::Struct_MetaDataParams))
};

UScriptStruct* Z_Construct_UScriptStruct_FMyStruct()
{
#if WITH_HOT_RELOAD
	extern uint32 Get_Z_Construct_UScriptStruct_FMyStruct_CRC();
	UPackage* Outer = Z_Construct_UPackage__Script_PluginCore();
	static UScriptStruct* ReturnStruct = FindExistingStructIfHotReloadOrDynamic(
		Outer,
		TEXT("MyStruct"), 
		sizeof(FMyStruct),
		Get_Z_Construct_UScriptStruct_FMyStruct_CRC(), 
		false);
#else
	static UScriptStruct* ReturnStruct = nullptr;
#endif
	if (!ReturnStruct)
	{
		UE4CodeGen_Private::ConstructUScriptStruct(ReturnStruct, Z_Construct_UScriptStruct_FMyStruct_Statics::ReturnStructParams);
	}
	return ReturnStruct;
}

uint32 Get_Z_Construct_UScriptStruct_FMyStruct_CRC() { return 2887623826U; }
PRAGMA_ENABLE_DEPRECATION_WARNINGS
#ifdef _MSC_VER
#pragma warning (pop)
#endif

//变量
//

#include "UObject/GeneratedCppIncludes.h"
#include "PluginCore/Public/MyStruct.h"
#ifdef _MSC_VER
#pragma warning (push)
#pragma warning (disable : 4883)
#endif
PRAGMA_DISABLE_DEPRECATION_WARNINGS
void EmptyLinkFunctionForGeneratedCodeMyStruct()
{}

// Cross Module References
PLUGINCORE_API UScriptStruct* Z_Construct_UScriptStruct_FMyStruct();
UPackage* Z_Construct_UPackage__Script_PluginCore();
ENGINE_API UClass* Z_Construct_UClass_AActor_NoRegister();
ENGINE_API UClass* Z_Construct_UClass_UBoxComponent_NoRegister();

// End Cross Module References
class UScriptStruct* FMyStruct::StaticStruct()
{
	static class UScriptStruct* Singleton = NULL;
	if (!Singleton)
	{
		extern PLUGINCORE_API uint32 Get_Z_Construct_UScriptStruct_FMyStruct_CRC();
		Singleton = GetStaticStruct(Z_Construct_UScriptStruct_FMyStruct, Z_Construct_UPackage__Script_PluginCore(), TEXT("MyStruct"), sizeof(FMyStruct), Get_Z_Construct_UScriptStruct_FMyStruct_CRC());
	}
	return Singleton;
}

static FCompiledInDeferStruct Z_CompiledInDeferStruct_UScriptStruct_FMyStruct(FMyStruct::StaticStruct, TEXT("/Script/PluginCore"), TEXT("MyStruct"), false, nullptr, nullptr);
static struct FScriptStruct_PluginCore_StaticRegisterNativesFMyStruct
{
	FScriptStruct_PluginCore_StaticRegisterNativesFMyStruct()
	{
		UScriptStruct::DeferCppStructOps(FName(TEXT("MyStruct")), new UScriptStruct::TCppStructOps<FMyStruct>);
	}
} ScriptStruct_PluginCore_StaticRegisterNativesFMyStruct;

struct Z_Construct_UScriptStruct_FMyStruct_Statics
{
#if WITH_METADATA
	static const UE4CodeGen_Private::FMetaDataPairParam Struct_MetaDataParams[];
#endif
	static void* NewStructOps();
#if WITH_METADATA
	static const UE4CodeGen_Private::FMetaDataPairParam NewProp_SetMyComponent_MetaData[];
#endif
	static const UE4CodeGen_Private::FSetPropertyParams NewProp_SetMyComponent;
	static const UE4CodeGen_Private::FObjectPropertyParams NewProp_SetMyComponent_ElementProp;
#if WITH_METADATA
	static const UE4CodeGen_Private::FMetaDataPairParam NewProp_ArrayComponent_MetaData[];
#endif
	static const UE4CodeGen_Private::FArrayPropertyParams NewProp_ArrayComponent;
	static const UE4CodeGen_Private::FObjectPropertyParams NewProp_ArrayComponent_Inner;
	static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
	static const UE4CodeGen_Private::FStructParams ReturnStructParams;
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UScriptStruct_FMyStruct_Statics::Struct_MetaDataParams[] = {
	{ "BlueprintType", "true" },
	{ "IsBlueprintBase", "true" },
	{ "ModuleRelativePath", "Public/MyStruct.h" },
};
#endif

void* Z_Construct_UScriptStruct_FMyStruct_Statics::NewStructOps()
{
	return (UScriptStruct::ICppStructOps*)new UScriptStruct::TCppStructOps<FMyStruct>();
}

#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_SetMyComponent_MetaData[] = {
	{ "Category", "BoxComponent" },
	{ "ModuleRelativePath", "Public/MyStruct.h" },
};
#endif
const UE4CodeGen_Private::FSetPropertyParams Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_SetMyComponent = 
{ 
	UE4CodeGen_Private::EPropertyClass::Set,
	"SetMyComponent", 
	RF_Public | RF_Transient | RF_MarkAsNative, 
	(EPropertyFlags)0x0010000000010001, 1, nullptr,
	STRUCT_OFFSET(FMyStruct, SetMyComponent),
	METADATA_PARAMS(Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_SetMyComponent_MetaData, 
	ARRAY_COUNT(Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_SetMyComponent_MetaData))
};

const UE4CodeGen_Private::FObjectPropertyParams Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_SetMyComponent_ElementProp = 
{ 
	UE4CodeGen_Private::EPropertyClass::Object,
	"SetMyComponent",
	RF_Public | RF_Transient | RF_MarkAsNative, 
	(EPropertyFlags)0x0000000000000001, 1, nullptr, 0,
	Z_Construct_UClass_AActor_NoRegister, 
	METADATA_PARAMS(nullptr, 0) 
};

#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_ArrayComponent_MetaData[] =
{
	{ "Category", "BoxComponent" },
	{ "EditInline", "true" },
	{ "ModuleRelativePath", "Public/MyStruct.h" },
};
#endif
const UE4CodeGen_Private::FArrayPropertyParams Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_ArrayComponent = 
{ 
	UE4CodeGen_Private::EPropertyClass::Array,
	"ArrayComponent",
	RF_Public | RF_Transient | RF_MarkAsNative,
	(EPropertyFlags)0x0010008000010009, 
	1, nullptr,
	STRUCT_OFFSET(FMyStruct, ArrayComponent),
	METADATA_PARAMS(Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_ArrayComponent_MetaData,
	ARRAY_COUNT(Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_ArrayComponent_MetaData)) 
};

const UE4CodeGen_Private::FObjectPropertyParams Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_ArrayComponent_Inner =
{ 
	UE4CodeGen_Private::EPropertyClass::Object, 
	"ArrayComponent",
	RF_Public | RF_Transient | RF_MarkAsNative, 
	(EPropertyFlags)0x0000000000080008, 1, nullptr,
	0, Z_Construct_UClass_UBoxComponent_NoRegister,
	METADATA_PARAMS(nullptr, 0)
};

const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UScriptStruct_FMyStruct_Statics::PropPointers[] = 
{
	(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_SetMyComponent,
	(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_SetMyComponent_ElementProp,
	(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_ArrayComponent,
	(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UScriptStruct_FMyStruct_Statics::NewProp_ArrayComponent_Inner,
};

const UE4CodeGen_Private::FStructParams Z_Construct_UScriptStruct_FMyStruct_Statics::ReturnStructParams =
{
	(UObject* (*)())Z_Construct_UPackage__Script_PluginCore,
	nullptr,
	&NewStructOps,
	"MyStruct",
	RF_Public | RF_Transient | RF_MarkAsNative,
	EStructFlags(0x00000005),
	sizeof(FMyStruct),
	alignof(FMyStruct),
	Z_Construct_UScriptStruct_FMyStruct_Statics::PropPointers, ARRAY_COUNT(Z_Construct_UScriptStruct_FMyStruct_Statics::PropPointers),
	METADATA_PARAMS(Z_Construct_UScriptStruct_FMyStruct_Statics::Struct_MetaDataParams, ARRAY_COUNT(Z_Construct_UScriptStruct_FMyStruct_Statics::Struct_MetaDataParams))
};

UScriptStruct* Z_Construct_UScriptStruct_FMyStruct()
{
#if WITH_HOT_RELOAD
	extern uint32 Get_Z_Construct_UScriptStruct_FMyStruct_CRC();
	UPackage* Outer = Z_Construct_UPackage__Script_PluginCore();
	static UScriptStruct* ReturnStruct = FindExistingStructIfHotReloadOrDynamic(Outer, TEXT("MyStruct"), sizeof(FMyStruct), Get_Z_Construct_UScriptStruct_FMyStruct_CRC(), false);
#else
	static UScriptStruct* ReturnStruct = nullptr;
#endif
	if (!ReturnStruct)
	{
		UE4CodeGen_Private::ConstructUScriptStruct(ReturnStruct, Z_Construct_UScriptStruct_FMyStruct_Statics::ReturnStructParams);
	}
	return ReturnStruct;
}

标签:反射,Statics,FMyStruct,Construct,UE4CodeGen,Private,UScriptStruct,UE4,结构
来源: https://blog.csdn.net/qq_40008456/article/details/119490510