Packaged Game Paths: Obtain Paths based on Game Executable
In this wiki I share with you many functions that enable you to obtain absolute paths that are based on the location of the game exectuable.
In otherwords you can package the game, and then move it at any time to any directory, and the path generated will be accurate for your whole moved project!
const FString ThePath = FPaths::ConvertRelativePathToFull(FPaths::GameDir());
In a pre-packaged game this will be where the .uproject is, but in packaged game it will be your main game directory off of windowsnoeditor!
Packaged Game Paths ~ Obtain Directories Based on Executable Location