So I’ve figured out how to make changes to config files such as DefaultEngine.ini and in this case im making a plugin that depends on some features being enabled in the Project Settings such as CustomDepthStencil.
Using the following code:
URendererSettings* StencilSettings = GetMutableDefault<URendererSettings>();
StencilSettings->CustomDepthStencil = ECustomDepthStencil::EnabledWithStencil;
StencilSettings->SaveConfig();
I can change this value in the config files, however this is not yet applied to the currently-running game. I have to restart the game for these changes to actually take effect.
How can I apply these changes to the game that is currently running, or update them in the version of the config that is currently loaded into memory?