how can I pass parameters in this case;
GetWorldTimerManager().SetTimer(this, &ABattleGameHUD::ClearMSG, DeltaSeconds, false);
how can I pass parameters in this case;
GetWorldTimerManager().SetTimer(this, &ABattleGameHUD::ClearMSG, DeltaSeconds, false);
If I understand the question correctly, a delegate with some payload params may work for you: Delegates and Lamba Functions in Unreal Engine | Unreal Engine 5.1 Documentation
can you give me a sample or somthing?
I want to do things like when time is up I wanna use base class point to excute subclass’s virtual function.
void CLASS::FUN(BASE * base)
{
GetWorldTimerManager().SetTimer(this, &CLASS::ExcuteSubClassMethod, 0.1, false);
}