Navigation
API > API/Developer > API/Developer/ToolWidgets
Widget for displaying a user avatar icon. The avatar's background color is computed based on the Identifier. The avatar's displayed letter is the initial letter of the Description if it's alpha numeric, or a question mark otherwise.
Name
SAvatar
Type
class
Header File
/Engine/Source/Developer/ToolWidgets/Public/SAvatar.h
Include Path
#include "SAvatar.h"
Syntax
class SAvatar : public SCompoundWidget
Copy full snippet
Inheritance Hierarchy
Structs
Variables
Protected
Name
Type
Remarks
Include Path
Unreal Specifiers
BackgroundColor
FColor
The BackgroundColor used
SAvatar.h
bShowInitial
bool
The setting that determines if we're showing the initial
SAvatar.h
Description
FString
The Description of the avatar
SAvatar.h
ForegroundColor
FColor
The ForegroundColor used (text)
SAvatar.h
Identifier
FString
The Identifier of the avatar
SAvatar.h
Functions
Public
Name
Remarks
Include Path
Unreal Specifiers
The custom OnPaint handler necessary because we want to draw a circle
SAvatar.h