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.
|
inline |
DO NOT USE.
This constructor is for internal usage only for hot-reload purposes.
|
static |
| Name | e.g. TEXT("EyeAdaptation") |
| CommaSeparatedNames | leave 0 for normal purpose, is used internally for the grouping feature |
|
static |
| InIndex | can be from FindIndexByName() or IterateAllFlags() |
|
inlinestatic |
this function defines the grouping in the editor.
If a flag is not defined here it's assumed to be a postprocess flag
| ENGINE_API bool FEngineShowFlags::GetSingleFlag | ( | uint32 | Index | ) | const |
O(1)
| Index | you can get the index from FindIndexByName() or IterateAllFlags() |
|
static |
O(1) Check if a CVar is forcing a particular flag on / off
| Index | you can get the index from FindIndexByName() or IterateAllFlags() |
|
inlinestatic |
| Name | e.g. TEXT("EyeAdaptation") |
| CommaSeparatedNames | leave 0 for normal purpose, is used internally for the grouping feature |
|
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
| 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
| In | e.g. TEXT("PostProcessing,PostProcessingTonemapper=0,AmbientCubemap=1") |
| ENGINE_API void FEngineShowFlags::SetSingleFlag | ( | uint32 | Index, |
| bool | bSet | ||
| ) |
O(1)
| bSet | true:set the flag, false:clear the flag |
| ENGINE_API FString FEngineShowFlags::ToString | ( | ) | const |
not optimized for speed, good for serialization and debugging