蓝图转C++
March 29, 2022Less than 1 minute
蓝图转C++
可以设置蓝图转化成C++,来解决一些性能上的问题。标记需要生成C++的蓝图就不会打到pak包中。
一般是在打包的时候就会让标记的蓝图转化为C++,手动转化就直接打开蓝图,点击File -> Developer -> Generate Native Code
即可。
相关代码可以查看:
FGeneratedCodeData.Save
FBlueprintNativeCodeGenModule::GenerateSingleAsset
FBlueprintNativeCodeGenUtils::GenerateCppCode
引用
https://docs.unrealengine.com/4.27/zh-CN/Resources/SampleGames/ARPG/BalancingBlueprintAndCPP/
https://www.unrealengine.com/en-US/onlinelearning-courses/converting-blueprints-to-c