PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

GetUserThumbnailAsync

GetUserThumbnailAsync fetches a Articles/Content|content URL of an image of a player’s avatar given their Player/UserId|UserId, the image size (as an enum) and type (also an enum: avatar, bust, headshot). It also returns a bool describing if the image is ready to be used.

Most often, this method is used with ImageLabel/Image to display player pictures next to their username in-game. It is also appropriate for Decal/Texture as well.

Available Sizes

Enum.ThumbnailSize: Size48x48, Size60x60, Size100x100, Size150x150, Size180x180, Size353x353, Size420x420

Types of User Thumbnails

Enum.ThumbnailTypeDescriptionExample (60px)
AvatarBustUpper chest and head
AvatarThumbnailEntire avatar
HeadShotJust the head and face

Parameters

Name Type Default Description

The userId of the player being specified.

A Enum/ThumbnailType describing the type of thumbnail.

A Enum/ThumbnailSize specifying the size of the thumbnail.

Returns

Return Type Summary