In this entry, some useful information regarding packaging will be collected.
# Before Packaging
# Recommended Settings for Packaging
- In the project settings, make sure you set the **Game Default Map** to the map that contains the StudySetupActor.
- Deselect "Use Pak File", that way the content directory is not converted to a .pak file. That way the game can still easily use separate files for config and data (like face-tracking .csv-files or .json-files for configs)
### Transferring `Content`-Subdirectories
By default UE will only transfer those subdirectories of the `Content`-folder, that contain .uasset-files used in the game. This means other files like .csv, .json, .wav will not be transferred automatically. Under `Project Settings->Additional Non-Asset Directories To Copy` you can specify directories (relative to the `Content`-folder) to be copied to the packaged game's directory. \
**Note:**
- It is not possible to transfer individual files that lie directly in the content directory.
- Be weary of what is copied. Sometimes a directory may be copied by default, but not all subdirectories/files it contains, because some sub-sub-directory contains a uasset. If you run into new errors with your packaged game, it is worthwhile to first check, whether all required files have been copied as expected.
- For non-uasset files, copying them manually after the fact should also work.
# Running a Packaged Game in VR
To switch to VR mode, create a windows shortcut to the .exe, edit the shortcut file and to the entry in "Target" append " -vr". This shortcut will then launch the study in VR mode.