Skip to content

Transitions

A transition blends the lighting from one scenario to another over time. Try one on the Transition page in the editor, then run the same blend in the game from Blueprint or Python, or drive it from a Sequencer curve.

The Transition page: from SC_Street_BlueHour to SC_Street_Night over 4 seconds, ease in-out, lamplighter 60 percent, near first, with the lamp order
A transition from blue hour to night on the Transition page.
Field What it does
From, To The two scenarios. From can be Level as it is.
Duration Seconds.
Easing Linear, Ease in, Ease out, Ease in-out or Smooth.
Lamplighter Spreads local lights over the transition so they change one after another. 0 = all together.
Order Near first, Far first (from the camera), Random (a fixed shuffle) or By name (in label order).
  • Play plays the transition in the editor level. It is a preview: nothing is changed for good.
  • Scrub shows any point between From and To.
  • Keep To ends the preview and applies the To scenario to the level (undoable).
  • Restore lighting puts the level back.

Under the buttons, Lamp order: … lists the local lights in the order the stagger changes them.

Four frames of a transition from blue hour to night: at 0, 12, 35 and 100 percent the street lamps come on near to far
The lamplighter stagger: the nearest lamps come on first.
  • Light intensity blends in exposure stops (perceptual), which looks more even when lights dim a lot. This can be turned off in the settings.
  • The sun direction blends along the shortest rotation.
  • Lights and post process volumes that turn on or off fade instead of popping.
  • Post process overrides blend from or to the engine default when only one side overrides them.
  • Colours blend in linear space. Switches, enums and assets (a cubemap, a LUT) change at the start, the middle or the end of the transition, as set in the settings.
  • Partial scenarios blend only what they hold, on their own curve: a fog change can run while the sun is still setting.
  • Sky lights that don’t capture in real time are recaptured when the transition ends, or on an interval while it runs.

In Blueprint, use Blend To Scenario (category ta Lamplighter) with the scenario and the blend options: Duration, Easing, Stagger (0 to 0.95), Stagger Order, and whether the stagger is measured from the player’s camera or from a fixed origin. A duration of zero applies the scenario at once.

Other nodes:

  • Apply Scenario applies a scenario at once.
  • Set Scenario Blend sets the lighting to a point between two scenarios (0 = A, 1 = B), for sliders and timelines.
  • Stop Transitions stops all transitions where they are or at their end; Is Blending and Get Active Scenario tell you where you are.
  • Capture Current Lighting captures the lighting into a temporary scenario, for example to blend back after a cutscene.

The Lamplighter subsystem of the world has On Transition Started and On Transition Finished events.

world = unreal.get_editor_subsystem(unreal.UnrealEditorSubsystem).get_editor_world()
options = unreal.TALamplighterBlendOptions()
options.duration = 4.0
options.stagger = 0.6
unreal.TALamplighterLibrary.blend_to_scenario(world, night, options)
A Scenario Blender in Sequencer with its Blend Alpha curve over a street changing from day to night
One Blend Alpha curve in Sequencer drives the whole lighting change.

A Lamplighter Scenario Blender blends the level between two scenarios with one number. Add Scenario Blender on the Transition page places one set to From and To and selects it.

  1. Add the blender to your level sequence.
  2. Add a track for its Blend Alpha (0 = scenario A, 1 = scenario B).
  3. Key the curve: the whole lighting change follows it. The blender’s options set the easing and the lamplighter stagger; the curve is the timing.

With Preview In Editor on, the blend shows while you edit and scrub Sequencer; Restore Editor Lighting on the blender undoes the preview. Apply On Begin Play applies the blend when play begins.