Saving additional info to a level (Editor)

I’m currently working on a plugin for the editor that supports the creation of a 2D strategy grid such as you would see in a Civilization game. I’ve got everything working, however at the moment I’m trying to figure out the best way to save each level’s grid info (size of each cell, what cell is what, etc.) which essentially amounts to saving a few arrays and a struct.

I figured the most natural way to do this was to bake the info directly into each level’s save file because each level will have different grid info. I’ve been unable to find any information online of how to do this. Does anyone either know how to do this or what module of the source code already does this?

If UE4 just doesn’t support messing with level saves, then my next question would be is there any way to get some unique identifier of a level opened in the editor (perhaps a name or some such)? I could probably use that to jank-up independent files to have each level’s grid info, although that isn’t a very pretty solution.

Thanks!

Yeah, that’s always a solution. I’m hesitant to use it, however, because I’d like to eventually put this plugin on the marketplace so the more idiot-proof it is the better. Thanks for the suggestion, I’ll probably go with it if the data can’t be baked.

Simplest way would be to let your Plugin create a Actor inside the Level and read data from it. Save with the level, done.