Download

How to change a TextBlock Color?

Hi,

Im using something like this:



#include "Styling/SlateColor.h"

UTextBlock PlayerNameTextBlock;
FSlateColor newColor = FSlateColor(FLinearColor(3.0f / 255.0f, 252.0f / 255.0f, 11.0f / 255.0f, 1.0f));
PlayerNameTextBlock.SetColorAndOpacity(newColor);


But im getting a linking error in the FSlateColor constructor when im running DebugGame Editor mode, if i use DebugGame mode it compile and works, any ideas why?

Regarts!

FSlateColor require SlateCore module. in .cs build file

Thank @Emaer, it fix my bug!

Regarts!