Then you can call it like this: Delay(1.f, false, "MyFuncName");
One drawback is that you need to mark your functions as UFUNCTION(). If someone knows if there’s a way to use delegates with not a UFUNCTION(), I’ll gladly hear it.
Well, the main issue for me is not UFUNCTION itself, but the fact that is has to be a separate function to begin with. If it’s a function used used multiple times, then it’s fine, but if it’s a one-time use, having a separate function also extend the code a lot.
Now I’m using this approach:
It’s several lines of code, but what you want to do after a delay is fully incapsulated within BindLambda, and you don’t have to modify .h and create separate functions.