Naming the per instance ini

Hello everybody, the latest tool I’ve been developing is an extension to post processing which adds a gamma and brightness color adjustment. This works on a per post process volume basis and stores the value in a config file so I figured that the PerObjectConfig specifier would be the best for the situation. Everything went well, the only issue I have is with the name of the ini file generated.

When testing the tool in the editor the ini file generated is named after the map, after a prefix indicating it’s for a PIE type of map. That’s fine, it’ll make it easier to distinguish which post process values I’m viewing, if I have a ton of maps. The package version however generates an ini named “none”.

I would like to know how I would change the name of the ini because leaving the file named “none” in a release build just seems a little unpolished to me. I know that the Config specifier has a way to name the ini file it will generate via:

Config=[FileName]

Doing the same thing for PerObjectConfig doesn’t seem to work.

DeviceProfiles provide an example. From their declaration:

UCLASS(config=DeviceProfiles, perObjectConfig)
class ENGINE_API UDeviceProfile : public UTextureLODSettings