Making Spaceships Fly Using Unity’s Timeline

Chris Hilton
3 min readFeb 5, 2022

Objective: To create a seamless animation track out of multiple animation clips to make a spaceship fly, using Timeline in Unity.

It is time to have a little fun moving on from the Matching Clip Offsets article to see if we can take 3 separate animation clips (created in Timeline) and join them all together to create a seamless animation sequence.

Scene Setup

I have taken a Star Destroyer 3D model asset from Filebase and imported it into a basic 3D scene along with with a custom 6 sided cube space skybox.

Scene

Animations

I have also gone ahead and created 3 separate animation clips in Timeline that look like this:

Animation 1

Animation 1

Animation 2

Animation 2

Animation 3

Animation 3

Creating the Seamless Transition Using Matching Clip Offsets

I am going to be using ‘Match Offsets to Next Clip’ from within the animation track to make this happen.

Using the ‘Match Offsets to Next Clip’ feature to join animation clips

Right clicking on clip 1, let’s then select ‘Match Offsets to Next Clip’ and scrub through the time to watch the changes:

Clip 1 is now offset to match clip 2’s start position and rotation

Straight away we can see that when clip 1 ends and clip 2 starts, it doesn’t jump back to clip 2’s starting position and rotation. However, we can also see the clip 1 now has an offset on it’s position and rotation at the start to make this seamless transition happen.

I am going to do the same thing now for clips 2 and 3, and let’s take a look between those two:

Clip 2 is now offset to match clip 3’s start position and rotation

Removing the Pauses and Watching in Realtime

Highlight all 3 animation clips and right click on one of them, selecting ‘Tile’ and it will remove all the in between pauses to finalise our seamless transition.

Highlight all 3 animation clips and right click — Tile
Removed the pauses in between the clips, creating a seamless track
Seamless animation using 3 separate clips and only Timeline

--

--