Hello I am trying to pass a parameter in addition to the float value in FTimelineFloat but I am unable to find a way.
void UGenericComponent::Foo()
{
FOnTimelineFloat TimelineProgress;
TimelineProgress.Clear();
TimelineProgress.BindUFunction(this, FName("TimelineProgressFunction")); //try to pass more parameter here.
FTimeline HealthTimeline;
FName name = "NAME";
HealthTimeline.AddInterpFloat(CurveFloat, TimelineProgress, name);
HealthTimeline.PlayFromStart();
}
void UGenericComponent::TimelineProgressFunction(const float& Value,const int32 & Index)
{
UE_LOG(LogTemp, Warning, TEXT("TIMELINE CALLEEED"));
}
If I try to pass more parameters in TimelineProgress.BindUFunction(this, FName(“TimelineProgressFunction”)) line then I get Error that too many function arguments. Is it possible even to pass more arguments ?