I’m working on a way to export character data from a struct to a JSON or CSV file, but I’m kinda stuck.
We have character blueprints that derive from a basic character class. This class contains a struct with attributes like health, actions points, you name it. When creating blueprints, we can change those values in the editor to give characters starting values.
Now I know that you can easily export unreal data tables since the editor provides export functions for those, so I want to “connect” the structs from character blueprints to corresponding data tables, which can then be exported.
Deriving our struct from FTableRowBase (like shown here: Data Driven Gameplay Elements | Unreal Engine Documentation) at least makes it to work with data tables but I’d have to create a row for each character manually. I want the changes made to the character blueprint to be taken also to the data table. I thought of creating data tables besides the character blueprints and then just putting a reference to the table in the blueprint, but I can’t use pointers to structs and now I’m kinda out of ideas.
Any suggestions on this would be really much appreciated.