I’m trying to read text from a file in a packaged game but am having some problems with FPaths.
In my plugin, I am returning a string for the file location, It works perfectly in the editor but not in the packaged game and the other functions of the BP Plugin work fine.
Just as a test, try FPaths::ProjectPersistentDownloadDir() and see what you get back from a packaged project. That’s what I use in my DLC loader and it returns a location,
Different platforms have different restrictions, that one should work on all of them.
This also works the same way.
Using FPaths::ProjectPersistentDownloadDir() I get the following in editor:
…/…/…/…/…/…/Documents/Unreal Projects/MyProject/PersistentDownloadDir
and blank in a packaged build
Are there any permissions I need to set for the plugin to be able to access files?