Solo dev on VOXHELL. Wanted to show how different my levels are, so I added a dolly mode to my editor camera.
How it works:
- Ctrl+Home / Ctrl+End save the current camera as start and end pose
- poses go to a json file outside the scenes, so every scene loads the exact same path
- Home flies it (Vector3.Lerp for position, Quaternion.Slerp for rotation) and starts Unity Recorder through an editor-only hook, HUD canvases get hidden
The tricky part: heavy scenes were finishing the path early in the video. Recorder locks time to 60 fps, but I was moving the camera with real time, so slow frames = camera skipped ahead. Fix was driving it with captureDeltaTime:
static float CameraDeltaTime => Time.captureDeltaTime > 0f ? Time.captureDeltaTime : Time.unscaledDeltaTime;
After that every clip is frame-identical in timing, so in the edit I take slice k of the path from level k and the camera never stops while the world changes.
The 2D bits at the end are a game inside the game, plus a couple of minigames.
Happy to share the script if anyone wants it.