How do I package random files?

You can add additional directories to stage via your project settings. Go to “Project Settings”, then “Packaging”, and you’ll find “Additional Non-Asset Directories to Package” and “Additional Non-Asset Directories to Copy” under the advanced section.

Which you use depends on whether your files are loaded via the Unreal File System (UFS), or whether they’re loaded via a third-party IO API (including the STL).

  • “Additional Non-Asset Directories to Package” will add the files to your .pak file, which is what you want when you’re using the UFS API.
  • “Additional Non-Asset Directories to Copy” will stage your files individually (outside the .pak file), which is what you want when you’re using a third-party file IO API.