Post Process Manager
Post Process Manager - Code Plugin
Available on the FAB marketplace.
Setup
-
Install the plugin from FAB. Manual process: Copy
PostProcessManager/into your project'sPlugins/folder, regenerate project files and build. -
Example content: You can find three example materials and
DT_PostProcessExamplesin the plugin's Content folder. Commit those assets with the plugin.
-
Your own effects: Use the existing example DataTable. If you want to create a DataTable: Use the row struct
PostProcessEffectDefinition(an effect tag and a material), and add it under Project Settings > Plugins > Post Process Manager > Effect Tables.
The example table is in that list by default. Remove it once you no longer need it.
-
Material: each post process material needs a scalar parameter named
PostProcess Intensity. You can use the provided example material function, which has this included.
Gameplay tags
The plugin ships its own tag source, Config/Tags/PostProcessManagerTags.ini:
You can add new tags to this source from the Gameplay Tag Manager by selecting PostProcessManagerTags.ini as the source.
Restricting tags: turn on Restrict Effect Tags and add parent tags (for example PostProcess) to Allowed Effect Tags. Then:
-
The tag pickers on all the plugin's nodes, on the data table rows and on Preloaded Effects only show those tags. The editor module does this through a Gameplay Tags category remap named
PostProcessManagerEffects. -
At runtime, Add rejects any other tag with a warning, and table rows that use other tags are skipped.
API
All functions exist on the Post Process Manager Subsystem and as static nodes that you can call from any Blueprint.
The curve parameters are under the node's advanced (collapsed) section.
#include "PostProcessManagerSubsystem.h" // add "PostProcessManager" to your module dependencies
if (auto* PPM = UPostProcessManagerSubsystem::Get(this))
{
PPM->AddPostProcessEffect(DesaturateTag); // intensity 1, fade 0.15s
PPM->AddPostProcessEffectForDuration(TintTag, 0.6f, /*Hold*/ 2.f); // fades in, holds 2s, fades out
PPM->RemovePostProcessEffect(DesaturateTag, 1.f, EaseOutCurve);
}
Behaviour
- Fades: a fade duration of
<= 0applies or removes the effect instantly. - Intensity
<= 0: removes the effect. The Fade In Duration and curve are used as the fade-out. - Adding an active effect: fades from the current intensity to the new one, cancels a pending removal, and makes a timed effect permanent. For Duration also restarts the hold timer.
- Timed effects: they are on screen for
Fade In + Duration + Fade Out. - Fade curves: the curve's time range is stretched to fit the fade. Its value (0 to 1) blends from the start intensity to the target intensity. Values above 1 overshoot, which is useful for punchy hits. With no curve, the fade is linear.
- Remove: calling Remove again while the effect is fading out does nothing.
-
Events:
OnPostProcessEffectAdded(Tag)fires once the material is loaded and the fade-in starts.OnPostProcessEffectChanged(Tag, Intensity)fires whenever the intensity changes, so every frame during a fade.OnPostProcessEffectRemoved(Tag)fires once the effect has fully faded out.
Events are queued and sent after the manager finishes its update, so it's safe to add or remove effects from inside a listener.
Sequencer: Post Process Effect Track
In a Level Sequence, go to + Track > Post Process Effect Track. It's a root track, not bound to any actor.
-
Sections: each section drives one effect. Set its Effect Tag in the section's properties (right-click the section > Properties). Key the Intensity curve to fade it in and out. With no keys, the intensity is 1. To add more sections, right-click the track and choose Add Post Process Effect Section. A track can have several rows.
-
Sequencer wins: while a section is evaluating, Blueprint and gameplay calls for that tag are ignored, and the debug view marks the effect
[Sequencer]. -
Section end: when the playhead leaves the section, or the sequence stops, the effect is removed instantly.
-
Editor preview: the track previews in the editor viewport while you scrub and play.
Editor preview window
Click Post Process in the level editor toolbar to open the Post Process Preview window.
- Preview by Tag: pick an effect tag (filtered like every other tag picker in the plugin) and click Add.
- Preview by Material: assign any post process material and click Add. It doesn't need a tag or a data table row.
- Previews: each preview gets its own intensity slider and an X button to remove it. Clear All removes every preview.
- Lifetime: previews show in the level viewport (not in PIE), carry over when you open another map, and are removed when you close the window. The manager's volume in the editor world is temporary and hidden, so it never dirties the level or gets saved.
The same direct-material functions are available to Blueprint: Set Post Process Material Intensity and Remove Post Process Material. They're instant, with no fading, and are handy for quick tests.
Loading
-
On world start, the manager loads only the data tables. Materials are soft references.
-
Preloaded Effects (a tag list in the settings): these materials load when the world starts and stay in memory. Use this for effects that must appear on the exact frame you add them.
-
All other materials load asynchronously the first time their effect is added. The fade-in starts once the material has loaded, usually a few frames later. Removing an effect while it's loading cancels the load. Turn off Async Load Materials to load them synchronously instead.
-
Keep Loaded Materials keeps on-demand materials in memory after their effect is removed. When it's off, they can be garbage collected and are streamed in again the next time.
Debug
PostProcessManager.Debug 1shows a "PostProcess Effects" list on screen with each active effect, its intensity and its state: fading, fading out, holding (with the time left), or loading. Turn it off withPostProcessManager.Debug 0. It isn't available in Shipping builds.
Settings
The settings are stored in their own config file instead of DefaultGame.ini:
-
Plugin defaults:
Plugins/PostProcessManager/Config/DefaultPostProcessManager.ini. This ships with the plugin, so anyone who installs it gets the example setup. -
Project overrides:
<Project>/Config/DefaultPostProcessManager.ini. The editor writes this file when you change a setting.
To change the defaults that ship with the plugin, edit the plugin's ini. You can also copy over the
[/Script/PostProcessManager.PostProcessManagerSettings] section from a project's override file.
Notes
- One instance per tag. To stack the same look twice, use two tags.
- The draw order between effects comes from each material's Blendable Location and Blendable Priority.
- The manager exists in Game, PIE and Editor worlds. Editor worlds never preload materials and don't show the debug view.
- Requires Unreal Engine 5.6 or newer, because the Sequencer hooks use the 5.6 playback-state API.