Version: 4.12
1. Make the following settings
2. Package the project (any platform is OK, this article takes windows as an example)
3. When the package is complete, the blueprint will be converted into C + + code in the original Project project.
4. Path (the translated code path is darker so step by step instructions)
C_sourcecode is the name of the project I built UE4.
The converted code within the intermediate folder
Windowsnoeditor is the Windows platform that was previously said to be packaged, so this platform is packaged with the conversion code under this folder
Nativizedassets localization resources, directly click into the line, the code in its file in the source folder
source folder into the Nativizedassets folder (Khan, this long path is finally going to the end)
Public is the. h header of the converted blueprint class, and Privarte is the. cpp header file for the converted blueprint corresponding class.
Take UE4 's third-person role blueprint as an example
. h file
. cpp Files
Summing up, although UE4 from 4.12 has a blueprint to the C + + code function, but after the source code found that the converted code does not want us to imagine the ideal, function name function variables are not recognized. Hopefully, there will be some improvements in the next release.
Post the converted code:
[UE4] Blueprint converted to C + + code