Put a post process volume in your level, set it to infinite extent.
Make a new widget BP. Put a slider in it. Down the bottom of the slider details, click the big green ‘on value changed’ button and put this code in:
Run the game. It actually works back to front, but you get the idea