Is it possible to customize world settings for each map?

Lordink
Sun, 13 Jul 2014 08:31:19 +0000
Editor Scripting

Hi guys,

I am currently working on a large cpp-based in-game item generating system, and as I use minimum amount of UObjects in my system, it is not exposed to Blueprints. Though, instead of recompiling each time after I change the parameter or two in code (or stupidly exposing each of these parameters to some Actors), I would like to have a kind of centralized settings object, that I could edit on per-map basis, and the items which I spawn on this map will be taking different values from it. First off, is it possible to utilize in some way the World Settings for that purpose? I did not find any way to extend the settings list in it, outside of just editing the engine source code for it.

If not, what would be the best solution for such settings container? The only way that I can make it work for now, is using custom actor with my settings inside being set as public USTRUCT, placing this actor on the map, in code of each spawned item searching through all the actors on the map, finding that custom settings actor and taking parameters from it. I am pretty sure there are better solutions out there, right?

9 posts - 1 participant