# \[Bug\] Timeline doesn't call UFUNCTIONS in C++

**URL:** <https://forums.unrealengine.com/t/bug-timeline-doesnt-call-ufunctions-in-c/384321>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [February 8, 2017, 6:55pm UTC](https://forums.unrealengine.com/t/bug-timeline-doesnt-call-ufunctions-in-c/384321 "2017-02-08T18:55:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bionic\_Ape](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bionic_ape/32/1090124_2.png) [@Bionic\_Ape](https://forums.unrealengine.com/u/Bionic_Ape)\
**Post date:** [February 8, 2017, 6:55pm UTC](https://forums.unrealengine.com/t/bug-timeline-doesnt-call-ufunctions-in-c/384321/1 "2017-02-08T18:55:32Z")

</div>

UFUNCTION methods are not being called from blueprints that extend from a C++ Actors that make use of TimeLineComponent if the it’s recofigured.

The C++ has the changes refreshed but not the Blueprint.

Here’s an example project:

> **[Meet Google Drive – One place for all your files](https://accounts.google.com/ServiceLogin?service=wise&passive=1209600&continue=https:%2F%2Fdrive.google.com%2Ffile%2Fd%2F0B9mTKNVKB4jdcFE4SEFON2plb2M%2Fview?usp%3Dsharing&followup=https:%2F%2Fdrive.google.com%2Ffile%2Fd%2F0B9mTKNVKB4jdcFE4SEFON2plb2M%2Fview?usp%3Dsharing)**
>
> Google Drive is a free way to keep your files backed up and easy to reach from any phone, tablet, or computer. Start with 15GB of Google storage – free.

Steps to reproduce:

STEP 1 - CONFIGURE THE TIMELINE

```
TimelineComponent = CreateDefaultSubobject<UTimelineComponent>(TEXT("TimelineComponent"));
	TimelineComponent->SetLooping(false);

	static ConstructorHelpers::FObjectFinder<UCurveFloat> CurveFloatRef(TEXT("CurveFloat'/Game/Test/CF_Test.CF_Test'"));
	FOnTimelineFloat OnLTestTimelineFloat;
	OnLTestTimelineFloat.BindUFunction(this, "UpdateValue");
	TimelineComponent->AddInterpFloat(CurveFloatRef.Object, OnLTestTimelineFloat, "CurveFloat");

```

…

void ATestActor::UpdateValue(float ValueFromTimeline)  
{  
UE\_LOG(LogTemp, Warning, TEXT(“ATestActor::UpdateValue() Value: %f CounterTest: %i”), ValueFromTimeline, ++CounterTest);  
}

STEP 2 - RENAME BOUND METHOD AND RECONFIGURE

```
ATestActor::ATestActor() :Super()
{
	// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = true;

	TimelineComponent = CreateDefaultSubobject<UTimelineComponent>(TEXT("TimelineComponent"));
	TimelineComponent->SetLooping(false);

	static ConstructorHelpers::FObjectFinder<UCurveFloat> CurveFloatRef(TEXT("CurveFloat'/Game/Test/CF_Test.CF_Test'"));
	FOnTimelineFloat OnLTestTimelineFloat;
	OnLTestTimelineFloat.BindUFunction(this, "UpdateValueNew");
	TimelineComponent->AddInterpFloat(CurveFloatRef.Object, OnLTestTimelineFloat, "CurveFloat");
}

void ATestActor::UpdateValueNew(float ValueFromTimeline)
{
	UE_LOG(LogTemp, Warning, TEXT("ATestActor::UpdateValue() Value: %f CounterTest: %i"), ValueFromTimeline, ++CounterTest);
}
```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [February 8, 2017, 7:48pm UTC](https://forums.unrealengine.com/t/bug-timeline-doesnt-call-ufunctions-in-c/384321/2 "2017-02-08T19:48:40Z")

</div>

Hey Bullyproof-

The issue of creating a function binding and then setting the binding to a new function is a known issue [Unreal Engine Issues and Bug Tracker (UE-38419)](https://issues.unrealengine.com/issue/UE-38419) . You can track the report’s status as the issue is reviewed by our development staff. Please be aware that this issue may not be prioritized or fixed soon.

Cheers

---

<div class="post-metadata">

**Author:** ![Bionic\_Ape](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bionic_ape/32/1090124_2.png) [@Bionic\_Ape](https://forums.unrealengine.com/u/Bionic_Ape)\
**Post date:** [February 8, 2017, 9:47pm UTC](https://forums.unrealengine.com/t/bug-timeline-doesnt-call-ufunctions-in-c/384321/3 "2017-02-08T21:47:11Z")

</div>

Hi ,

Thanks for your reply.

Do you know any walkaround?

Cheers,

---

<div class="post-metadata">

**Author:** ![Bionic\_Ape](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bionic_ape/32/1090124_2.png) [@Bionic\_Ape](https://forums.unrealengine.com/u/Bionic_Ape)\
**Post date:** [February 10, 2017, 8:40am UTC](https://forums.unrealengine.com/t/bug-timeline-doesnt-call-ufunctions-in-c/384321/4 "2017-02-10T08:40:33Z")

</div>

Is there any known walk-around?  
The only one I know is deleting the blueprint and creating a new one, which is a pain.  
Cheers,
