Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FDynamicStats
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TStatId CreateStatId
(
const FString& StatNameOrDescription |
Create a new stat id and registers it with the stats system. | Stats/DynamicStats.h | |
static TStatId CreateStatId
(
const FName StatNameOrDescription, |
Stats/DynamicStats.h |
CreateStatId(const FString &)
Description
Create a new stat id and registers it with the stats system. This is the only way to create dynamic stat ids at runtime. Can be used only with FScopeCycleCounters.
Store the created stat id. Expensive method, avoid calling that method every frame.
Example: FDynamicStats::CreateStatId
| Name | CreateStatId |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Stats/DynamicStats.h |
| Include Path | #include "Stats/DynamicStats.h" |
template<typename TStatGroup>
static TStatId CreateStatId
(
const FString & StatNameOrDescription
)
CreateStatId(const FName, bool)
| Name | CreateStatId |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Stats/DynamicStats.h |
| Include Path | #include "Stats/DynamicStats.h" |
template<typename TStatGroup>
static TStatId CreateStatId
(
const FName StatNameOrDescription,
bool IsTimer
)