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.
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 (GetWorld() in all actors) from DeltaTimeSeconds variable.
Follow this question
Once you sign in you will be able to subscribe for any updates here