17 / 20
Packages/2D Parallax Pro/Environment transitions
DEVELOPER REFERENCE
17 / 20

Environment transitions

Smooth numeric settings while managing clock and tint ownership.

English guideSource: Unity 6000.3.13f1 · URP 17.x optional10 October 2026

Transition numeric environment values while giving each value one owner. Automatic clock progression or a cloud tint controller can otherwise compete with the transition.

Start and finish a transition#

Add Parallax2DTransition, assign its Manager and create an Environment Preset with unique matching layer names. GuideTransition demonstrates three seconds to night while saving/restoring the clock's Automatic flag.

SettingTransitionTo behavior
Factor / Offset / TintInterpolate numeric values on name-matched layers.
HourShortest path around the clock; intermediate SetTime calls suppress events. Stop automatic clock progression first.
Ambient multiplierSmooth color blend; ambient/sky gradient assets themselves are not tweened.
Wind / Fog / Cloud velocityFirst matching components, not every independent effect entry.
Discrete settings falseDefault; do not apply gradients, loop axes, sorting, visibility or day duration.
Discrete settings trueApply destination preset on completion, including its clock SetTime event behavior.
Sprite references / transformsDo not swap existing art, create hierarchies/colliders or tween artwork transforms.
New transition / CancelStart from current values; Cancel stops there instead of restoring original values.

Resolve ownership conflicts#

Cloud controllers rewrite layer.tint; a transition or gameplay script may target the same field. Plan that layer's color ownership explicitly. Automatic clocks, timelines and gameplay writers also need coordination.

Pause-screen timing#

C#
transition.useUnscaledTime = true;
// If clock-controlled visual fades must also run while paused:
clock.useUnscaledTime = true;

Unscaled transition progress does not switch every effect/drift to unscaled time. Other controllers, including tint smoothing, use their own timing. Test the intended paused presentation.

Start a transition, cancel/replace it halfway and confirm the replacement starts at the current state without reverting to the original preset.

Adapted from the supplied guide · PDF pages 35–36.View source guide ↗
Keep creating.ERAGAN STUDIO.

Search a topic, setting or method across all package guides.