In Unreal Engine 5 (UE5), the Timeline node in Blueprints is a powerful tool for creating animations and time-based events. Let's break down how the "Finished" execution pin (exec pin) behaves, especially when the timeline is reversed.
"Finished" Exec Pin Behavior
The "Finished" exec pin on a Timeline node fires when the timeline reaches the end of its duration. Here's a detailed explanation of its behaviour in different scenarios:
-
Forward Playback:
- When the timeline plays forward and reaches the end of its duration, the "Finished" exec pin will fire.
-
Reverse Playback:
- When the timeline is reversed and reaches the beginning of its duration the "Finished" exec pin will also fire.
This means that the "Finished" exec pin fires regardless of the playback direction—whether the timeline finishes playing forward to the end or reverses back to the start
Demonstration
To demonstrate this, you can create a simple Blueprint with a Timeline node:
-
Add a Timeline Node:
- Drag a Timeline node into your Blueprint.
-
Set Up the Timeline:
- Add a float track and create some keyframes to define the timeline's duration.
-
Add “Finished” logic
- Add a print string node and connect it to the “Finished” exec pin. This will help us verify when the pin is triggered.
-
Control the Timeline:
- Add buttons or events to play, reverse, and stop the timeline.
- Connect the “reverse” pin to the reverse exec pin on the timeline node.
-
Test the Blueprint:
- When you play the timeline forward, the "Finished" exec pin will fire when it reaches the end.
- When you reverse the timeline, the "Finished" exec pin will fire when it reaches the beginning
Additional Pins
The Timeline node also has other useful execution pins:
- "Update" Exec Pin: Fires every frame while the timeline is playing, providing the current value of the tracks.
- "Direction Change" Exec Pin: Fires when the timeline's playback direction changes (e.g., from forward to reverse or vice versa).
Conclusion
Yes the "Finished" exec pin on the UE5 Blueprint Timeline node does fire when the timeline is reversed and reaches the beginning of its duration. It fires whenever the timeline completes its playback in either direction.