I’m adding some Java files to my Android project and using UPL to add them into the build.
I’ve also got some files in the content directory that I need to reference from the Java code. Those files are set as “Non-asset files to copy” in the project’s packaging settings.
How can I find these files during runtime on the android device?
Using the relative path from GetProjectContentDir does not seem to work. Looking around some of the engine’s java code, I’ve tried plugging in a bunch of different variables and paths, but none seem to point to the right place (InternalFilesDir, ExternalFilesDir, Context.GetDataDir(), Context.GetFilesDir(), many others).
Poking around in the apk, I’ve found the files inside main.obb.png, in ProjectName/Content/.