Wiki Code Tutorials

Packaged Game Paths: Obtain Paths based on Game Executable

Dear Community,

In 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!

Example:



//InstallDir/WindowsNoEditor/GameName
const FString ThePath = FPaths::ConvertRelativePathToFull(FPaths::GameDir());


In a pre-packaged game will be where the .uproject is, but in packaged game it will be your game directory off of windowsnoeditor!

Packaged Game Paths ~ Obtain Directories Based on Executable Location

:slight_smile: