从master分支拉取puerts,并拉取v8制品,修改puerts插件部分UE5_5以下兼容的宏代码。保证puerts编译通过。包括

CSharpParamDefaultValueMetas.cs和ubtplugin.csproj和declarationGenerator.cpp和PropertyTranslator.cpp对UserDefinedStruct.h的引用
This commit is contained in:
2024-12-02 01:03:52 +08:00
parent 850d76173c
commit ed21658256
150 changed files with 31347 additions and 16645 deletions
@@ -81,7 +81,12 @@ static void FText_Format(const v8::FunctionCallbackInfo<v8::Value>& Info)
}
#endif
struct AutoRegisterForUE
#if ENGINE_MAJOR_VERSION > 4
UsingUClass(AActor);
UsingUStruct(FHitResult)
#endif
struct AutoRegisterForUE
{
AutoRegisterForUE()
{
@@ -130,6 +135,10 @@ struct AutoRegisterForUE
.Function("Format", FText_Format, &FormatSignature)
.Register();
#endif
#if ENGINE_MAJOR_VERSION > 4
PUERTS_NAMESPACE::DefineClass<FHitResult>().Method("GetActor", MakeFunction(&FHitResult::GetActor)).Register();
#endif
}
};