FTicker

Syntax

class FTicker

Remarks

Ticker class. Fires delegates after a delay.

Note: Do not try to add the same delegate instance twice, as there is no way to remove only a single instance (see member RemoveTicker).

Constructors

Name Description

Public function

FTicker()

Destructors

Name Description

Public function

~FTicker()

Functions

Name Description

Public function

FDelegateHan ...

 

AddTicker

(
    const FTickerDelegate & InDelegate,
    float InDelay
)

Add a new ticker with a given delay / interval

Public function

FDelegateHan ...

 

AddTicker

(
    const TCHAR * InName,
    float InDelay,
    TFunction < bool(float)> Function
)

Add a new ticker with a given delay / interval.

Public function Static

FTicker &

 

GetCoreTicker()

Singleton used for the ticker in Core / Launch.

Public function

void

 

RemoveTicker

(
    FDelegateHandle Handle
)

Removes a previously added ticker delegate.

Public function

void

 

Tick

(
    float DeltaTime
)

Fire all tickers who have passed their delay and reschedule the ones that return true

References

Module

Core

Header

Runtime/Core/Public/Containers/Ticker.h