Hello! I want to pack non-asset files to PAK archive in Content folder of my game. For example: test.txt. I do it this way: In Project→Packaging→Additional Non-Asset Directories to Package I add folder “Custom”. This folder is located in the Content folder. This folder contains test.txt. I’m not sure if I’m packaging the file correctly. Because I can’t access it through the C++ code:
FString FileContent;
FString FilePath = TEXT(“/Game/Custom/test.txt”);
if (FFileHelper::LoadFileToString(FileContent, *FilePath)) ….
I tried to set folder: FString FilePath = TEXT(“Custom/test.txt”);
The file did not open. I searched for the file in the log after packing the project, but I couldn’t find it. However, when I opened the pak file via hex editor, the file name and the strings it contains are present in pak. Why can’t I open my text file?
