Spawn a post process volume in C++

Hi

Can I spawn (in C++) at the begin play an post process volume on the whole map ?
I don’t want to place one in all my map but do that automaticaly at the level load.

If we can, in which c++ file I have to do it for spawning it, whatever the loaded map

Hi

This question has already posted here : Can I instantiate volumes through code? - Programming & Scripting - Epic Developer Community Forums

For now, I don’t know if you can spawn a post process volume. But if you want it to be applied on camera wherever it is and on all levels, simply create a PostProcessVolume with bUnbound set to false (everywhere) on the first level. And Make its outer be your world for preventing your garbage collector to destroy it when changing level (not sure it is enough).

You could also do this in the constructor of an object that will only be created once like ULocalPlayer (they were handled this way in UE3 though they were not volumes).

hi! i just answered to the already posted question: https://answers.unrealengine.com/questions/36329/how-to-instantiate-volumes-through-code.html

take a look!
bye :wink: