Hi guys.
I have some weird problem going on here. I'm using TimerManager with a DynamicDelegate.
And it just won't start or anything.
Here's what I'm doing, plus log result.
result - In every frame, log says:
StateSystemDelegateis not active
Remaining Time: -1.000000
if I do the same with normal binds instead of dynamic ones, everything works.
Any idea what's wrong?
I have some weird problem going on here. I'm using TimerManager with a DynamicDelegate.
And it just won't start or anything.
Here's what I'm doing, plus log result.
Code:
void MyClass::BeginPlay() { StateSystemDelegate.BindDynamic(this, &MyClass::TickStateSystem); GetWorldTimerManager().SetTimer(StateSystemDelegate, 2.f, true); } void MyClass::Tick(float DeltaSeconds) { if (GetWorldTimerManager().IsTimerActive(StateSystemDelegate)) { LOGYELLOW("########## StateSystemDelegateis active"); } else { LOGYELLOW("########## StateSystemDelegateis not active"); } float Remaining = GetWorldTimerManager().GetTimerRemaining(StateSystemDelegate); LOGYELLOW("########## StateSystemTimer Remaining Time: %f",Remaining); }
StateSystemDelegateis not active
Remaining Time: -1.000000
if I do the same with normal binds instead of dynamic ones, everything works.
Any idea what's wrong?
Comment