![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ColorList.h>
Public Types | |
| typedef TMap< FString, const FColor * > | TColorsMap |
| typedef TArray< const FColor * > | TColorsLookup |
Public Member Functions | |
| CORE_API void | CreateColorMap () |
| CORE_API const FColor & | GetFColorByName (const TCHAR *ColorName) const |
| CORE_API const FLinearColor | GetFLinearColorByName (const TCHAR *ColorName) const |
| CORE_API bool | IsValidColorName (const TCHAR *ColorName) const |
| CORE_API int32 | GetColorIndex (const TCHAR *ColorName) const |
| CORE_API const FColor & | GetFColorByIndex (int32 ColorIndex) const |
| CORE_API const FString & | GetColorNameByIndex (int32 ColorIndex) const |
| int32 | GetColorsNum () const |
| CORE_API void | LogColors () |
Protected Member Functions | |
| CORE_API void | InitializeColor (const TCHAR *ColorName, const FColor *ColorPtr, int32 &CurrentIndex) |
Protected Attributes | |
| TColorsMap | ColorsMap |
| TColorsLookup | ColorsLookup |
| typedef TArray< const FColor* > FColorList::TColorsLookup |
| typedef TMap< FString, const FColor* > FColorList::TColorsMap |
| void FColorList::CreateColorMap | ( | ) |
Initializes list of common colors.
Returns index of color based on ColorName. If not found returns 0.
| const FString & FColorList::GetColorNameByIndex | ( | int32 | ColorIndex | ) | const |
Returns color's name based on index. If index is invalid, returns BadIndex.
|
inline |
Returns the number of colors.
Returns a color based on index. If index is invalid, returns White.
Returns a color based on ColorName. If not found, returns White.
| const FLinearColor FColorList::GetFLinearColorByName | ( | const TCHAR * | ColorName | ) | const |
Returns a linear color based on ColorName. If not found, returns White.
|
protected |
Returns true if color is valid common colors. If not found returns false.
| void FColorList::LogColors | ( | ) |
Prints to log all colors information.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
Array of colors for fast lookup when using index.
|
protected |
List of common colors.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |