Timeline (cutscenes)
A timeline is a file that holds a sequence along a clock: the door slides open at 2 s, the camera cuts to the hero at 3 s, a line of dialogue appears, a sound plays, and at 8 s a signal tells your game the scene is over. You make it in Files → New → Timeline (cutscene) and play it with a Playable Director when the scene starts, or from an event or a script.
Make one
- Files → New → Timeline (cutscene), name it (
Intro). The timeline opens in a dock under the scene view; drag its top edge to resize it, ✕ closes it. - + (top of the track names) adds a track: pick its kind, then the object.
- Scrub: drag along the ruler. The objects in the scene view take their pose for that moment (nothing is saved). ▶ plays that preview, ⏮ goes to the start.
- Add a key: ◆ on a property track, or double-tap the track at the time you want. A clip track has + instead.
- Record (⏺): with it on, move, turn or scale an object in the scene view and keys are made for you at the playhead, on new tracks if needed (an object that is moved at 2 s starts where it was at 0 s). The object itself stays where it was; the keys hold the move.
- Tap a key or clip to edit it in the list on the right: time, value, ease, which camera, which sound. Drag keys and clips along the track; drag the right end of a clip to stretch it.
- To see it in the game, give an object a Playable Director with Play On Awake, or start it with a Play timeline block, then press Play.
Length and Loop are at the top. Tracks can be moved up or down and muted from the list on the right.
Tracks
| Track | Holds | What it does |
|---|---|---|
| Move / turn / scale / fade | keyframes | Sets one property of an object: position X/Y/Z, rotation X/Y/Z (degrees), uniform size, opacity. Between two keys the later key's ease (linear, easeIn, easeOut, easeInOut, back, elastic, bounce) shapes the movement. Switch Smooth on in the track and one smooth curve passes through all its keys instead (the ease per key is ignored). Select a key on a Smooth track to set its Tangent, the curve's slope there in value per second (0 makes the curve level out at the key); Auto goes back to the worked-out slope. Before the first key and after the last, the value is held. Take the object's value now copies what the object has in the scene. |
| Show / hide an object | clips | The object is visible during its clips and hidden outside them (or the other way round). |
| Camera cuts | clips | Each clip names a camera object; while it plays, that camera renders the game. Give the clip a Blend time and the view glides in from the previous camera instead of cutting (two perspective cameras). When the timeline ends or stops, the game's own camera comes back. |
| Play an animation | points | At that moment plays an Animator state (with a cross-fade) or a model clip. |
| Sounds | clips | Plays a sound at the clip's start (with volume and fade in). Stretch the clip and the sound is stopped at its end; leave it as a point for a one-shot. |
| Subtitles | clips | Shows the clip's line in a Text object (a UI text or a 3D text) while the clip lasts, then clears it. |
| Signals | points | A named marker. When time passes it, the game gets a signal that events and scripts can react to. |
Tracks refer to objects by name, so a timeline works in any scene that has objects with those names. A track whose object is missing reports that in the console and does nothing.
Cameras and blending
A Camera cuts track decides which camera object renders the game at each moment. Every clip on it names one camera object (add one with Add → Camera), and while the clip lasts the game is drawn through that camera. Outside every clip the game's own camera is in charge: the one with Main ticked, or your Camera follow camera.
Example: from gameplay to a close-up and back
- Add a second camera object and name it
Closeup. Point it at the hero from the front. The game's normal camera keeps its name, sayCamera. - In the timeline add a Camera cuts track. Add a clip from 2 s to 6 s, choose
Closeupas its camera and set Blend to 1.5. - Play it. For the first 2 s you see the normal view. At 2 s the view glides to
Closeupover 1.5 s and stays there until 6 s. At 6 s the normal camera comes back.
What Blend does:
- It is the number of seconds the view takes to travel from what was on screen to the clip's camera. The travel moves the position, the turn and the field of view together, starting and ending slowly. 0 is a hard cut.
- The start point is whatever was showing the moment the clip began: the game's camera, or the previous clip's camera. So two clips in a row glide from shot to shot, and a clip after a gap glides from the game's camera.
- Blend belongs to the clip it is set on and only applies when that clip starts.
- Blend Out is how many seconds the view takes to glide back to the game's camera when the clip ends and no other camera clip follows. 0 is a cut.
- It follows the target camera while it travels, so a closeup camera that is itself moved by a property track is tracked, not aimed at where it started.
- It works between two perspective cameras. If either one is orthographic the change is a cut.
- It runs on game time, and it is not tied to the clip's length: a 1.5 s blend in a 1 s clip is simply interrupted when the clip ends.
- Two clips that name the same camera change nothing, so there is nothing to blend. A common slip is to use the game's own camera as the clip's camera: use a second camera object.
A clip can also name a Virtual Camera. It is live while the clip lasts, whatever the priorities, and the main camera follows it as it follows and aims. When the clip ends, the virtual camera that is live by priority comes back over the clip's Blend Out, or with its own Blend In when the clip has none.
In the editor, scrubbing shows the camera under the playhead in the small camera picture in the corner of the scene view. The glide itself is only seen in Play.
Subtitles
A Subtitles track writes a line of text into one Text object while each clip lasts, and clears it when the clip ends. The track does not draw anything itself and has no position of its own: it is shown wherever that Text object is. A track whose object is not a text (a ground plane, a model) shows nothing.
Example: a spoken line with a caption
- Make the text object: Add → UI → Text, name it
Caption. In its Rect Transform set the anchor to the bottom centre, a width of about 80% of the screen (so long lines wrap), an offset of 80–120 up from the bottom so it clears the phone's gesture bar and the browser's fullscreen notice, and text align centre. Leave its own text empty. - In the timeline add a Subtitles track and pick
Captionas its object. - Add a clip from 0 s to 1 s with the value
Hey.and another from 1.7 s to 2.7 s withHello. Between and after the clips the text is cleared. - Add a Sounds track with the voice recording on the same times so the words and the line match.
More to know:
- The value of a clip is the line. For several lines in a row, place clips back to back: the text is replaced the moment the next clip starts.
- Use one subtitle track per speaker or per place on screen (a second Text object for a narrator at the top), each with its own object.
- A 3D text object works too, and the caption then sits in the world, for a sign or a speech bubble.
- Stop timeline, Skip timeline and reaching the end clear the text, so a half-shown line never stays behind.
- While you scrub or preview in the editor the line under the playhead shows at the foot of the scene view, wherever your Text object is. Check the real position in Play.
- To show a caption from an event instead, use Set text. The Subtitles track is for lines that must line up with the other tracks.
Playable Director
A timeline is a file, so it isn't part of any scene. To play it when a scene starts, put a Playable Director on an object in that scene, as in Unity.
- Select any object (an empty one is fine), Add component → Playable Director.
- Timeline: pick it, or New timeline…. ✎ Edit opens it in the dock.
- Leave Play On Awake on.
| Setting | What it does |
|---|---|
| Timeline | The timeline it plays. |
| Play On Awake | Starts when the scene starts, or when the object is spawned. |
| Wrap Mode | At the end: None stops and gives the camera and subtitles back, Hold stays on the last frame (camera included) until it is stopped, Loop starts over. It wins over the timeline's own Loop. |

A director only plays its timeline in the scenes that have the director's object. A prefab with a director carries its little sequence with it: a chest that opens, a door with a camera shot.
The Play director and Stop director actions (Timeline) play or stop the timeline of an object's director, with its Wrap Mode. In scripts: door.director.play(); entity.director has the same methods as game.timeline().
Play it from events
| Block | Does |
|---|---|
| Play timeline | Starts it (resumes a paused one; starts over if it had finished). |
| Pause timeline / Stop timeline | Pause holds the time. Stop goes back to the start and gives the camera back. |
| Skip timeline | Jumps to the end: the signals still to come fire, so the game carries on, but sounds and animations do not. Use it for a Skip button. |
| Jump to time, Set timeline speed | Seek without firing anything on the way; change the speed. |
| On timeline signal | Trigger: a signal was reached. Pick the timeline and the signal name, or leave them empty for any. |
| On timeline finished | Trigger: a timeline played to its end. |
| Timeline is playing | Condition, for example to ignore input during a cutscene. |
The player is never touched by a timeline: to freeze the hero during a cutscene, use Timeline is playing in the events that read input.
Play it from a script
const intro = game.timeline('Intro');
intro.play();
game.find('Door').director.play(); // the timeline of its Playable Director, with its Wrap Mode
game.on('timelineSignal', (e) => { if (e.signal === 'OpenDoor') door.playAnimation('open'); });
game.on('timelineFinished', (e) => game.goToScene('Level 1'));
game.timeline(name) throws when the project has no timeline of that name. The handle has play(), pause(), stop(), skip(), seek(seconds), and time, duration, isPlaying, finished, speed, loop.
Good to know
- A timeline runs on game time: it follows the game's time scale and stops while the game is paused.
- Ending a scene stops its timelines (sounds off, camera back).
- Seeking changes what you see (positions, who is shown, the camera) but fires no sounds, animations or signals.
- Scrubbing shows the camera under the playhead in the small camera picture in the corner of the scene view.
- Preview play in the editor plays the sound clips as the playhead passes them (scrubbing stays silent).
- The subtitle line under the playhead shows at the foot of the scene view while you scrub or preview.
- Curve graph. Select a property track and a small graph of its curve shows in the side panel: time across, value up, a dashed line at the playhead. Tap a dot to pick that key. Drag the picked key to move it in time and value (it stays between its neighbours). On a Smooth track the picked key also shows a round handle on its slope line: drag it up or down to set the key's Tangent. Nothing is saved until you let go, and the whole drag is one undo step. The Time, Value and Tangent fields give the same control with numbers.
- Copy a key or clip. Select it and tap ⧉ next to the bin in the side panel: a copy is made at the playhead on the same track, with the same value, ease, tangent (keys) or length, sound and blend (clips). Move the playhead first to choose where it lands. A key already at that time is replaced. It is one undo step.
- While the game runs, the debugger's Variables tab lists every timeline with play, pause and a scrub bar.