04 / 20
Packages/2D Parallax Pro/Camera & motion modes
BUILD YOUR WORLD
04 / 20

Camera & motion modes

Choose camera-driven depth, automatic scenery drift or both.

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

Assign the rendered camera for coverage, then choose what drives layer motion. Automatic drift and camera movement can be controlled independently.

Camera input#

ControlMeaning
Camera AdapterSupplies rendered camera and sampled movement to Manager.
Target CameraValid Orthographic Camera; required even for a stationary runner's coverage.
SmoothingZero samples movement/shake directly. Positive values filter motion; higher values approach target faster.
Advanced movement sourceIParallaxCameraSource or Position Override separates actual view from parallax input. Override takes priority when enabled.

Motion modes#

ModeUse
Camera DrivenFollow/platformer camera displacement. Scroll Velocity has no effect.
Auto ScrollStationary-camera runner/menu; drift follows virtual travel and camera displacement is ignored for parallax.
Camera And Auto ScrollCamera response plus independent automatic scenery travel.
TEXT
autoDrift / second = -scrollVelocity * (1 - factor) * autoScrollMultiplier

Scroll Velocity is world units/second. X +6 moves scenery left: factor 0.8 gives -1.2 units/s and factor 0.2 gives -4.8. Y follows the same formula.

Three pause controls#

  • Scroll Paused stops automatic layer drift.
  • Camera Paused stops sample camera movement/zoom.
  • Day & Night Paused stops clock progression.

Player movement is separate. For a runner, select Auto Scroll, provide nonzero velocity/multiplier and keep the rendered camera assigned. Set a gameplay ground layer's autoScrollMultiplier = 0 when it must remain still.

Custom camera sources#

GuideCameraSource supplies unshaken movement input while retaining the real camera for coverage. Manager normally evaluates in LateUpdate at execution order 10000. Fix camera ordering before adding manual driving, and avoid advancing/evaluating twice per frame.

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

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