FDynamicStats::CreateStatId

Create a new stat id and registers it with the stats system.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Stats/Stats.h

Include

#include "Stats/Stats.h"

Syntax

template<typename TStatGroup>
static TStatId CreateStatId
(
    const FString & StatNameOrDescription
)

Remarks

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,Index) )

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss