labidus
(labidus)
October 8, 2015, 2:13am
1
In my custom STextBlockEx derived from STextBlock,
BlinkTimerHandle = RegisterActiveTimer(1.0f, FWidgetActiveTimerDelegate::CreateSP(this, &STextBlockEx::BlinkText));
Does not trigger any “BlinkText()”
Is there a bug with slate and timer? or something I need to do before calling RegisterActiveTimer?
Thank you!
szyszek
(szyszek)
October 8, 2015, 8:37am
2
where do you register your timer and how does the BlinkText
function looks like?
labidus
(labidus)
October 8, 2015, 4:03pm
3
I changed the name for TriggerBlink… I call the RegisterActiveTimer on a button click somewhere in my code
EActiveTimerReturnType STextBlockEx::TriggerBlink(double InCurrentTime, float InDeltaTime)
{
...
return EActiveTimerReturnType::Continue;
}
labidus
(labidus)
October 8, 2015, 4:29pm
4
Ok I figured out my problem, when I call my start blink, its was from a update loop status, I did not realize it was called on each frame!! so it was un-registering / registering on each frame… so it is working now