Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FTSTicker
Internal structure to store a ticker delegate and related data
| Name | FElement |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Ticker.h |
| Include Path | #include "Containers/Ticker.h" |
Syntax
struct FElement
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FElement () |
Default ctor is only required to implement CurrentElement handling without making it a pointer. | Containers/Ticker.h | |
FElement
(
double InFireTime, |
This is the ctor that the code will generally use. | Containers/Ticker.h | |
FElement
(
double InFireTime, |
This is the ctor that the code will generally use. | Containers/Ticker.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DefaultState | uint64 | Containers/Ticker.h | |
| RemovedState | uint64 | Containers/Ticker.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DelayTime | float | Delay that this delegate was scheduled with. | Containers/Ticker.h | |
| FireTime | double | Time that this delegate must not fire before | Containers/Ticker.h | |
| Function | TUniqueFunction< bool(float)> | Function to fire | Containers/Ticker.h | |
| State | std::atomic< uint64 > | The element can be in 4 states: "idle", "executing", "idle and removed" and "executing and removed" Often right after `RemoveTicket()_ call resources that are used by the delegate are destroyed. | Containers/Ticker.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Fire
(
float DeltaTime |
Fire the delegate if it is fireable | Containers/Ticker.h |