Proper way to add/modify java source without messing with the engine files

Hi,

Is there any way to extend the default GameActivity.java or provide a custom one, and add more java files to my game project without directly changing or adding files at the engine folders? How can I include these new files in the build process?

Thanks in advance!

You can use Unreal Plugin Language which reference you can find here: https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Programs/UnrealBuildTool/System/UnrealPluginLanguage.cs

I made this plugin some time ago, access the camera with Java, because is the only way, and process in c++: [Plugin] Android Camera - Engine Source & GitHub - Unreal Engine Forums

Thank you for your help, I was able to do it using the references you provided. However, I still find the documentation lacking, in such things as the description of the Build.cs classes interfaces and of the UPL system itself. As soon as I finish my project and have some time I’ll try to prepare something.

You can also find some examples on my GitHub: https://github.com/gameDNAstudio?tab=repositories

Thanks, I’ve run into it!