I Can't add DeltaTime To Custom Function

Hi, I want to add DeltaTime to a custom function, I want a function that when the player collides with an object, that object moves to the x axis, but I need to add DeltaTime for it to work smoothly, but when I add DeltaTime I get an error in .AddDynamic in this line of the script:

Move->OnComponentBeginOverlap.AddDynamic(this, &AMove :: Move);

It works when I add the normal parameters, but if I add Delta Time it does not work and gives me an error for example

UFUNCTION
void Move (float DeltaTime);

If I add that it gives me the error.

Here is part of the cpp script, I get an error on the last line in .AddDynamic

RootSceneComponent = CreateDefaultSubobject<USceneComponent>(TEXT("RootSceneComponent"));
RootComponent = RootSceneComponent;

MyMesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("MyMesh"));
MyMesh->AttachToComponent(RootSceneComponent, FAttachmentTransformRules::SnapToTargetNotIncludingScale);

Trigger = CreateDefaultSubobject<UBoxComponent>(TEXT("Trigger"));
Trigger->AttachToComponent(RootSceneComponent, FAttachmentTransformRules::SnapToTargetNotIncludingScale);
Trigger->SetWorldScale3D(FVector(3.0f, 4.0f, 2.0f));
Trigger->bGenerateOverlapEvents = true;
Trigger->OnComponentBeginOverlap.AddDynamic(this, &AMove::Move);

You can’t change the parameters. OnComponentBeginOverlap expects to broadcast with a certain signature and you can’t modify this.

There are other options though. What is it you’re trying to achieve? What is DeltaTime in this case and what does AMove::Move do when an overlap event occurs?

Sorry I answered late, I am trying to make a script that when you touch the object it moves, but I don’t want it to appear and disappear I want it to move normally for example if the player touches the object it moves to the x axis, I want to use delta time so that the object moves in real time, and AMove::Move is the function that makes the object move. If you have any questions let me know I will answer them.

Either pass DeltaTime thru argument (ofcorse you can’t do that with predeclered delegates) or save DetlaTime on Tick to variable. You can also current DeltaTime from UWorld (() in all actors) from DeltaTimeSeconds variable.

Thank you !