从master分支拉取puerts,并拉取v8制品,修改puerts插件部分UE5_5以下兼容的宏代码。保证puerts编译通过。包括
CSharpParamDefaultValueMetas.cs和ubtplugin.csproj和declarationGenerator.cpp和PropertyTranslator.cpp对UserDefinedStruct.h的引用
This commit is contained in:
@@ -228,7 +228,12 @@ PropertyMacro* FContainerMeta::GetObjectProperty(UField* Field)
|
||||
if (Enum->GetCppForm() == UEnum::ECppForm::EnumClass)
|
||||
{
|
||||
FEnumProperty* EnumProp =
|
||||
#if ENGINE_MAJOR_VERSION > 4 && ENGINE_MINOR_VERSION > 4 // 5.5+
|
||||
new FEnumProperty(PropertyMetaRoot, NAME_None, RF_Transient);
|
||||
EnumProp->SetEnum(Enum);
|
||||
#else
|
||||
new FEnumProperty(PropertyMetaRoot, NAME_None, RF_Transient, 0, CPF_HasGetValueTypeHash, Enum);
|
||||
#endif
|
||||
FNumericProperty* UnderlyingProp = new FByteProperty(EnumProp, TEXT("UnderlyingType"), RF_Transient);
|
||||
EnumProp->AddCppProperty(UnderlyingProp);
|
||||
EnumProp->ElementSize = UnderlyingProp->ElementSize;
|
||||
|
||||
Reference in New Issue
Block a user