engine
 
载入中...
搜索中...
未找到
静态 Public 成员函数 | 所有成员列表
FDynamicStats结构体 参考

Helper class used to generate dynamic stat ids. 更多...

#include <Stats.h>

静态 Public 成员函数

template<typename TStatGroup >
static TStatId CreateStatId (const FString &StatNameOrDescription)
 Create a new stat id and registers it with the stats system. 更多...
 

详细描述

Helper class used to generate dynamic stat ids.

成员函数说明

◆ CreateStatId()

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

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<STAT_GROUP_TO_FStatGroup( STATGROUP_UObjects )>( FString::Printf(TEXT("MyDynamicStat_%i"),Index) )


该结构体的文档由以下文件生成: