# Timeline for Actor Components

**URL:** <https://forums.unrealengine.com/t/timeline-for-actor-components/667311>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, Blueprint, question\
**Created:** [October 11, 2022, 3:14pm UTC](https://forums.unrealengine.com/t/timeline-for-actor-components/667311 "2022-10-11T15:14:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Username0520](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/username0520/32/538954_2.png) [@Username0520](https://forums.unrealengine.com/u/Username0520)\
**Post date:** [October 11, 2022, 3:14pm UTC](https://forums.unrealengine.com/t/timeline-for-actor-components/667311/1 "2022-10-11T15:14:34Z")

</div>

Hello. How can i make anything to replace Timeline in Actor Components. Timeline isn’t available for components. I had ideas with a macro which will take values from Curves; Creating Construct, but the macro requires curves, object which can be used in constructs can’t have delay. Is there any way to emulate Timeline inside Actor Components without all the issues and difficulties?

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [October 11, 2022, 3:56pm UTC](https://forums.unrealengine.com/t/timeline-for-actor-components/667311/2 "2022-10-11T15:56:28Z")

</div>

You could use FTimerManager to start a timer (with -\>setTimer) and then fire off a function once it ends.  
You could theoretically:

- loop it and keep firing the function
- inside the function increment an update float;  
-then try to access a UCurveFloat at a set percentage (current increment) to get the passed value

It all depends on the accuracy needed

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [October 11, 2022, 6:36pm UTC](https://forums.unrealengine.com/t/timeline-for-actor-components/667311/3 "2022-10-11T18:36:57Z")

</div>

You can use a curve, and a “current position” member variable which is updated in “tick” if some “currently playing” flag is set. This requires no delay.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [October 11, 2022, 9:44pm UTC](https://forums.unrealengine.com/t/timeline-for-actor-components/667311/4 "2022-10-11T21:44:18Z")

</div>

Ok got a timeline in the component working

UMySceneComponent.h

```auto
// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "Components/TimelineComponent.h" 
#include "MySceneComponent.generated.h"

UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) , Blueprintable )
class DGP_API UMySceneComponent : public UActorComponent
{
	GENERATED_BODY()

public:	
	// Sets default values for this component's properties
	UMySceneComponent();

protected:
	// Called when the game starts
	virtual void BeginPlay() override;

public:	
	// Called every frame
	virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
	

	float passedTime;
	UPROPERTY(editAnywhere, BlueprintReadWrite)
		UCurveFloat* TimelineCurve;
	
	UPROPERTY(editAnywhere, BlueprintReadWrite)
		UTimelineComponent* MyTimeline;
	
	FOnTimelineFloat InterpFunction{};

	UFUNCTION()
		void TimelineUpdate(float val);
};

```

UMySceneComponent.cpp

```auto
// Fill out your copyright notice in the Description page of Project Settings.

#include "MySceneComponent.h"
#include "TimerManager.h"
#include "Curves/CurveFloat.h" 

// Sets default values for this component's properties
UMySceneComponent::UMySceneComponent()
{	
	PrimaryComponentTick.bCanEverTick = false;
	TimelineCurve = CreateDefaultSubobject<UCurveFloat>(TEXT("Timeline Curve"));		
	MyTimeline = CreateDefaultSubobject<UTimelineComponent>(TEXT("Timeline"));		
}

// Called when the game starts
void UMySceneComponent::BeginPlay()
{
	Super::BeginPlay();
	
	if (TimelineCurve != nullptr) {
		InterpFunction.BindUFunction(this, FName{ TEXT("TimelineUpdate") });
		MyTimeline->AddInterpFloat(TimelineCurve, InterpFunction, FName{ TEXT("doUpdate") });
	}
	MyTimeline->SetLooping(true);
	MyTimeline->SetPlayRate(1);
	MyTimeline->SetTimelineLengthMode(TL_LastKeyFrame);
	MyTimeline->PlayFromStart();

}

// Called every frame
void UMySceneComponent::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
{
	Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
	// ...
}

void UMySceneComponent::TimelineUpdate(float val) {

	if (TimelineCurve != nullptr) {
		bool isplay = MyTimeline->IsPlaying();
		if (isplay == true) {
			if (GEngine) {
				GEngine->AddOnScreenDebugMessage(-1, 2, FColor::Green, GetName() + " Progress:" + FString::SanitizeFloat(val));
			}
		}
	}
}
```

---

<div class="post-metadata">

**Author:** ![Tomasz\_Klin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tomasz\_Klin](https://forums.unrealengine.com/u/Tomasz_Klin)\
**Post date:** [March 3, 2026, 10:46pm UTC](https://forums.unrealengine.com/t/timeline-for-actor-components/667311/5 "2026-03-03T22:46:36Z")

</div>

You can use this plugin

> **[Component Timeline](https://www.fab.com/listings/dcae9d59-ec20-401d-b21c-4e5f5ef0a031)**
>
> 100% of Blueprint Actor Timeline Features, Easy to Use!Showcase Video - youtube.com/watch?v=EF\_dmPJceLwThe Component Timeline plugin provides all the functionality of the Timeline node from the actor blueprint with the added convenience of placing...

---

<div class="post-metadata">

**Author:** ![MarkiGamesDE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarkiGamesDE](https://forums.unrealengine.com/u/MarkiGamesDE)\
**Post date:** [March 6, 2026, 9:58am UTC](https://forums.unrealengine.com/t/timeline-for-actor-components/667311/6 "2026-03-06T09:58:19Z")

</div>

Or you use a ChildActor instead of the ActorComponent, then you have all things an Actor has
