Navigation
Unreal Engine C++ API Reference > Runtime > Core > Math
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Math/ColorList.h |
Include | #include "Math/ColorList.h" |
Syntax
class FColorList
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TColorsLookup | ColorsLookup | Array of colors for fast lookup when using index. |
![]() |
TColorsMap | ColorsMap | List of common colors. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Initializes list of common colors. | |
![]() ![]() |
int32 | GetColorIndex
(
const TCHAR* ColorName |
Returns index of color based on ColorName. If not found returns 0. |
![]() ![]() |
const FString & | GetColorNameByIndex
(
int32 ColorIndex |
Returns color's name based on index. If index is invalid, returns BadIndex. |
![]() ![]() |
int32 | GetColorsNum () |
Returns the number of colors. |
![]() ![]() |
const FColor & | GetFColorByIndex
(
int32 ColorIndex |
Returns a color based on index. If index is invalid, returns White. |
![]() ![]() |
const FColor & | GetFColorByName
(
const TCHAR* ColorName |
Returns a color based on ColorName. If not found, returns White. |
![]() ![]() |
const FLinearColor | GetFLinearColorByName
(
const TCHAR* ColorName |
Returns a linear color based on ColorName. If not found, returns White. |
![]() |
void | InitializeColor
(
const TCHAR* ColorName, |
|
![]() ![]() |
bool | IsValidColorName
(
const TCHAR* ColorName |
Returns true if color is valid common colors. If not found returns false. |
![]() |
void | LogColors () |
Prints to log all colors information. |
Typedefs
Name | Description |
---|---|
TColorsLookup | |
TColorsMap |