Where to store game information
I wish to create a file with dialogs, quest for NPC. It will be a json file. I want to load the json in my C++ code. The subject is not about read the file but to know where in the project (VS or Editor//asset) to be able to load it after I package the game.
It can't be on an absolute path like (c:\game\myuegame\file.json).
asked Jul 06 '16 at 10:55 AM in Packaging & Deployment
I think you're looking for FPlatformProcess::BaseDir(), and should be storing your json file some place within the game's installation/base folder. See:
Hope this helps!
answered Jul 06 '16 at 11:56 AM
Hey, you wouldn't be able to put the json file in the editor because unreal engine would not pick it up as a file unless you turn it into a UCLASS.
answered Jul 06 '16 at 11:39 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here