# UMG Timeline Events Trigger on Loop

**URL:** <https://forums.unrealengine.com/t/umg-timeline-events-trigger-on-loop/384114>\
**Category:** UI\
**Tags:** fyi, unreal-engine, question, UMG\
**Created:** [February 6, 2017, 8:09pm UTC](https://forums.unrealengine.com/t/umg-timeline-events-trigger-on-loop/384114 "2017-02-06T20:09:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Answers.Archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Answers.Archive](https://forums.unrealengine.com/u/Answers.Archive)\
**Post date:** [February 6, 2017, 8:09pm UTC](https://forums.unrealengine.com/t/umg-timeline-events-trigger-on-loop/384114/1 "2017-02-06T20:09:39Z")

</div>

I am running vanilla UE4 4.14 (preview) and it looks like UMG Timeline Events are triggered when an animation loops.

For example I have this simple timeline with an event triggered at 0.25s.

 ![125188-timeline.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/8/62874a70fc7d650f75e8a4317f94f69700f688ae.png)

That event triggers a delegate which simply prints an incrementing number to the log.

 ![125189-blueprint.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/d/90d7874210950f98ef15aff8c32032ae245d1db4.png)

So if I play that animation with no loops I see this in the log:

```
LogBlueprintUserMessages: [TestWidget] TIME LINE: 0

```

However, if I play the animation with 1 loop, I see this in the log:

![125190-loop.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/9/95992dbd186f41a91aac3913d42f3072fce22617.png)

```
LogBlueprintUserMessages: [TestWidget] TIME LINE: 0
LogBlueprintUserMessages: [TestWidget] TIME LINE: 1
LogBlueprintUserMessages: [TestWidget] TIME LINE: 2

```

If I play the animation with 2 loops, I see this in the log:

```
LogBlueprintUserMessages: [TestWidget] TIME LINE: 0
LogBlueprintUserMessages: [TestWidget] TIME LINE: 1
LogBlueprintUserMessages: [TestWidget] TIME LINE: 2
LogBlueprintUserMessages: [TestWidget] TIME LINE: 3
LogBlueprintUserMessages: [TestWidget] TIME LINE: 4

```

Based on the timing of when the extra calls are happening, it seems obvious that the event is triggered when animation sequencer returns to the start of the animation.

---

<div class="post-metadata">

**Author:** ![Answers.Archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Answers.Archive](https://forums.unrealengine.com/u/Answers.Archive)\
**Post date:** [February 6, 2017, 8:09pm UTC](https://forums.unrealengine.com/t/umg-timeline-events-trigger-on-loop/384114/2 "2017-02-06T20:09:45Z")

</div>

Hi Matthew,

Thank you for reporting this. I’ve been able to reproduce the issue, and I’m speaking to some folks about the best way to fix it. I’ll get back to you as soon as I have more info.

Best,

Cody

---

<div class="post-metadata">

**Author:** ![Answers.Archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Answers.Archive](https://forums.unrealengine.com/u/Answers.Archive)\
**Post date:** [February 6, 2017, 8:09pm UTC](https://forums.unrealengine.com/t/umg-timeline-events-trigger-on-loop/384114/3 "2017-02-06T20:09:46Z")

</div>

Hi Matthew,

I just submitted CL# 3202398, which includes some fixes to ensure events fire once per loop. I’ve noticed some corner cases where an event may not fire if it’s extremely close to the end of the animation, and filed a JIRA to continue investigating that. Let me know if that becomes a problem for you and I can take a look.

We recently refactored a lot of the sequencer tracks, so the changelist may be a bit different from your version. The important part is that we now set LastTimePosition = TimeCursorPosition whenever a loop occurs so that the evaluation range for the event track doesn’t include the entire track.

Best,

Cody
