Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FTimerHandle TimerHandle;
- FTimerDelegate TimerDelegate;
- //Binding our Lambda expression
- TimerDelegate.BindLambda([&]()
- {
- //Typing the logic of our function here just like any other function...
- GLog->Log("Destroying Actor now...");
- Destroy();
- });//Don't forget the ";" in the end of your parenthesis!
- GetWorld()->GetTimerManager().SetTimer(TimerHandle, TimerDelegate, 5.f, false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement