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

ShowFlags are a set of bits (some are fixed in SHIPPING) that are stored in the ViewFamily. 更多...

#include <ShowFlags.h>

Public 成员函数

 FEngineShowFlags ()
 DO NOT USE. 更多...
 
 FEngineShowFlags (EShowFlagInitMode InitMode)
 this constructor defines the default view settings
 
ENGINE_API bool GetSingleFlag (uint32 Index) const
 O(1) 更多...
 
ENGINE_API bool SetFromString (const TCHAR *In)
 More powerful than SetSingleFlag() as it allows to set/clear multiple flags not optimized but doesn't have to be Tolerates whitespace and user error, as user might manipulate the data 更多...
 
ENGINE_API void SetSingleFlag (uint32 Index, bool bSet)
 O(1) 更多...
 
ENGINE_API FString ToString () const
 not optimized for speed, good for serialization and debugging 更多...
 

静态 Public 成员函数

static ENGINE_API int32 FindIndexByName (const TCHAR *Name, const TCHAR *CommaSeparatedNames=0)
 
static ENGINE_API FString FindNameByIndex (uint32 InIndex)
 
static void FindShowFlagDisplayName (const FString &InName, FText &OutText)
 Retrieve the localized display name for a named show flag
 
static EShowFlagGroup FindShowFlagGroup (const TCHAR *Name)
 this function defines the grouping in the editor. 更多...
 
static ENGINE_API bool IsForceFlagSet (uint32 Index)
 O(1) Check if a CVar is forcing a particular flag on / off 更多...
 
static ENGINE_API bool IsNameThere (const TCHAR *Name, const TCHAR *CommaSeparatedNames)
 
template<class T >
static void IterateAllFlags (T &Sink)
 Allows to iterate through all flags (if you want to change or read the actual flag settings you need to pass in your own instance of FEngineShowFlags). 更多...
 

详细描述

ShowFlags are a set of bits (some are fixed in SHIPPING) that are stored in the ViewFamily.

They can be used by the artist/designer/developer to debug/profile parts of the rendering. Some ShowFlags are used to customize the rendering e.g. by the SceneCaptureActor, those should not be locked in shipping and not used in inner loops (for performance) They should not be used for scalability (as some might be compiled out for SHIPPING), there we use console variables. ViewModes are on a higher level, they can manipulate show flags before they get used.

构造及析构函数说明

◆ FEngineShowFlags()

FEngineShowFlags::FEngineShowFlags ( )
inline

DO NOT USE.

This constructor is for internal usage only for hot-reload purposes.

成员函数说明

◆ FindIndexByName()

static ENGINE_API int32 FEngineShowFlags::FindIndexByName ( const TCHAR *  Name,
const TCHAR *  CommaSeparatedNames = 0 
)
static
参数
Namee.g. TEXT("EyeAdaptation")
CommaSeparatedNamesleave 0 for normal purpose, is used internally for the grouping feature
返回
-1 if not found

◆ FindNameByIndex()

static ENGINE_API FString FEngineShowFlags::FindNameByIndex ( uint32  InIndex)
static
参数
InIndexcan be from FindIndexByName() or IterateAllFlags()
返回
empty string if not found, otherwise name of the flag e.g. FString(TEXT("PostProcessing"))

◆ FindShowFlagGroup()

static EShowFlagGroup FEngineShowFlags::FindShowFlagGroup ( const TCHAR *  Name)
inlinestatic

this function defines the grouping in the editor.

If a flag is not defined here it's assumed to be a postprocess flag

◆ GetSingleFlag()

ENGINE_API bool FEngineShowFlags::GetSingleFlag ( uint32  Index) const

O(1)

参数
Indexyou can get the index from FindIndexByName() or IterateAllFlags()

◆ IsForceFlagSet()

static ENGINE_API bool FEngineShowFlags::IsForceFlagSet ( uint32  Index)
static

O(1) Check if a CVar is forcing a particular flag on / off

参数
Indexyou can get the index from FindIndexByName() or IterateAllFlags()
返回
true if CVars are forcing flag on / off, false otherwise

◆ IsNameThere()

static ENGINE_API bool FEngineShowFlags::IsNameThere ( const TCHAR *  Name,
const TCHAR *  CommaSeparatedNames 
)
inlinestatic
参数
Namee.g. TEXT("EyeAdaptation")
CommaSeparatedNamesleave 0 for normal purpose, is used internally for the grouping feature
返回
success

◆ IterateAllFlags()

template<class T >
static void FEngineShowFlags::IterateAllFlags ( T &  Sink)
inlinestatic

Allows to iterate through all flags (if you want to change or read the actual flag settings you need to pass in your own instance of FEngineShowFlags).

Use this function instead of writing your own parser. implement a class with bool OnEngineShowFlag(uint32 InIndex, const FString& InName) which should return true to parse further

◆ SetFromString()

ENGINE_API bool FEngineShowFlags::SetFromString ( const TCHAR *  In)

More powerful than SetSingleFlag() as it allows to set/clear multiple flags not optimized but doesn't have to be Tolerates whitespace and user error, as user might manipulate the data

参数
Ine.g. TEXT("PostProcessing,PostProcessingTonemapper=0,AmbientCubemap=1")
返回
true:success, false:parse error detected

◆ SetSingleFlag()

ENGINE_API void FEngineShowFlags::SetSingleFlag ( uint32  Index,
bool  bSet 
)

O(1)

参数
bSettrue:set the flag, false:clear the flag

◆ ToString()

ENGINE_API FString FEngineShowFlags::ToString ( ) const

not optimized for speed, good for serialization and debugging

返回
e.g. TEXT("PostProcessingTonemapper=0,AmbientCubemap=1")

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