Creating Timelines

This document contains an overview of how to create Timeline nodes in Blueprints and C++.

Choose your operating system:




Choose your implementation method:



Creating Timelines

You can create your own Timeline Component in an Actor Blueprint by following these steps.

  1. From the Content Browser, select Add/Import > Blueprint Class and create a new Actor Blueprint named BP_TimelineActor. The Pick Parent Class dialog appears.

    image alt text

  2. In the class defaults, right-click on the Event Graph, to display the Blueprint Context Menu, and select Add Timeline.

    image alt text

A new Timeline node appears on the Event Graph.

image alt text

When a Timeline is added to your Blueprint class, you will be able to see it listed in the My Blueprint tab.

image alt text

Timeline Variables

Once you have created a Timeline, you will notice it become available as a variable in the My Blueprint tab. This is done to provide a reference to the Timeline component, and is useful when utilizing the Timeline nodes. These nodes exist to allow access to certain features of a Timeline, such as its play rate.

image alt text

In this example, we are using the Get Timeline 0 variable to query the current Play Rate value of that timeline.

image alt text

A wide variety of such nodes exist, providing the capabilities to query values and control behavior of your Timeline nodes. For a complete list of the available Timeline nodes and their functionality, see the Timeline Nodes page.

Creating a Timeline Event

Timeline Events provide functionality to a Timeline Component to handle your own custom events or functions. Follow the steps below for an example on how to implement your own event.

  1. Open BP_TimelineActor, then select and drag the execution pin off of Begin play and connect it to the Play execution pin of your Timeline Component.

    image alt text

  2. Next, select and drag off the Finished execution pin and create a new print string node with the string "Timeline Finished".

  3. Compile and Save, then press PIE.

    image alt text

    After a default Timeline length of 5 seconds, The text "Timeline Finished" will appear on the top left corner of the viewport.

Renaming Timelines

When using multiple Timelines in your Blueprints, it is important to name each Timeline accordingly. By default, all Timelines are named "Timeline_n" where n is a serialized number at the end. You can rename a Timeline by right-clicking it within the Graph tab or in the My Blueprint tab and selecting Rename.

image alt text

image alt text

Opening the Timeline Editor

Creating a timeline may not be useful unless you set it up with something to perform. For more information on editing Timelines, please see the Timeline Editing page.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey