I have many text files which contain data I need to use in my game.
I copied them to a folder in the Content directory.
I need to be able to access them from my project, so I found the TextAsset plugin.
I am using Unreal Engine 5.2
I grabbed the zip file for the 4.19 compatible plugin and placed the contents in a Plugins folder under my top level project folder.
When I try to load the Unreal Editor, it says the plugin was developed for a different version of UE. I clicked the button to load it anyway.
Then, I get a dialog saying that I should rebuild the TextAsset and TextAssetEditor modules so I click Yes.
Then, the engine goes away for a while and eventually gives me a dialog box that says my project can’t be compiled and I should rebuild is from source manually.
Right click your [ProjectName].uproject file and select Generate Project Files. It’ll generate a solution file (.sln) that you can open in Visual Studio and compile the plugin yourself (rebuild from source manually).
I have been doing some more reading and maybe I don’t need to use TextAsset.
According to what I am reading on this forum, maybe I can use FFileHelper to load my files.
Looking at the documentation, it looks like it has a function to read the contents of a file into a string.
Is there a way to get a list of files within a directory?