I want to include a custom ini config file to store position data for UI elements. This is working fine while using the editor, but I need it to work in the final product too.
Currently(as a placeholder while I was setting everything up in C++ and the editor) I have been using a hard set FString for the file path:
“…/…/…/…/…/…/…/Contents/MyDocs/Unreal Projects/MyGameProject/”
Contents > MyDocs > Unreal Projects being the directory where I am working on the project. Obviously this does not work in the packaged project.
I have two issues:
- Im not familiar with how to get the install directory of the game once it is packaged.
- Im not sure how the packaged game will react to attempting to write/ read to a custom config file that doesn’t exist, or how to have the install create the custom config file in the first place.
Any help would be greatly appreciated.