In UE5 blueprint, if I bind an event to the "on finished" event of a looping sequence,…
- User
In UE5 blueprint, if I bind an event to the "on finished" event of a looping sequence, will the on finished event play?
- Assistant
In Unreal Engine 5 (UE5) Blueprints, if you bind an event to the
"On Finished"event of a sequence or animation (such as a Level Sequence or Timeline), the"On Finished"event will only fire when the playback ends.Now, addressing your specific scenario:
"If I bind an event to the
On Finishedevent of a looping sequence, will the on finished event play?"✅ Short Answer:
No, the
On Finishedevent will NOT fire if the sequence is set to loop indefinitely.
💡 Explanation:
- The
On Finishedevent triggers only once when a sequence or timeline completes its final playback (i.e., when it finishes playing from start to end and doesn't loop anymore). - If the sequence is looping, it never reaches a 'finished' state, so
On Finishedwill not be called.
🎬 Applicable Systems:
Let’s put this in the context of Timeline components (Blueprint Timelines):
- A Timeline with "Looping" enabled will never trigger its
Finishedpin, because:- It doesn't reach its end.
- It restarts automatically — thus never enters a state considered "done".
Similarly, for Level Sequences or Level Sequence Actors:
- If the Loop property is enabled (e.g., in Sequence Player settings):
- It will loop endlessly unless stopped manually.
- The
On Finisheddelegate/event on the Level Sequence Player won’t trigger, because there is no “finish”.
🛠️ Workarounds:
-
Stop the Loop Manually:
- Use logic (e.g., a counter or condition) to stop the looping at the point you want.
- Call
Stop()on the Timeline or Sequence Player. - Then manually call your own custom event.
-
Bind to Loop Point Instead:
- For Timelines, you might handle logic in the
Updateor create markers to act on loop points. - For Level Sequences, use Playback Position + Length to detect when a loop restarts and handle that instead.
- For Timelines, you might handle logic in the
✅ Summary:
Sequence Type Looping? Will On FinishedFire?Timeline No ✅ Yes Timeline Yes ❌ No Level Sequence No ✅ Yes Level Sequence Yes ❌ No
If you let me know what kind of sequence you're using, I can provide a more tailored Blueprint solution 👍
- The
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.