Timer usage

Hi,

Will someone take the time to explain the creation of timers and their usage.

.h

#include "Runtime/Engine/Public/TimerManager.h"
FTimerHandle XTimerHandle;

  • Start timer (Call TimerFunc_Tick after fTime second. Start timer again if bLoop = true (call func every fTime seconds))

    GetWorld()->GetTimerManager().SetTimer(XTimerHandle, this, &TimerFunc_Tick, fTime, bLoop);


  • Stop timer

    GetWorld()->GetTimerManager().ClearTimer(XTimerHandle);

That explains everything, thank you