Documentation Index Fetch the complete documentation index at: https://cometchat-22654f5b-release-unreal-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
The CometChat Unreal SDK includes two ready-to-use UMG widgets that provide a complete chat experience out of the box. Both are fully styleable and configurable via Blueprint properties.
UCometChatPanel
A game-style tabbed chat panel with a dark translucent HUD aesthetic. It provides:
Three tabs : My Groups, Personal, Browse Groups
Search : Filter conversations and groups by name
Inline chat view : Select a conversation to open the chat within the panel
Typing indicators : Shows who is typing in the active chat
Avatar loading : Async avatar image loading with fallback initials
Message filters : Configurable filters for message types and categories
Adding to Viewport
Create a Widget Blueprint with parent class CometChat Panel
Set the App Id , Region , Auth Key , and User Uid properties
Add to viewport via Create Widget → Add to Viewport
Or use the UCometChatButton widget which manages the panel automatically. void AMyHUD :: BeginPlay ()
{
Super :: BeginPlay ();
UCometChatPanel * Panel = CreateWidget < UCometChatPanel >( GetWorld ());
Panel -> AppId = TEXT ( "YOUR_APP_ID" );
Panel -> Region = TEXT ( "us" );
Panel -> AuthKey = TEXT ( "YOUR_AUTH_KEY" );
Panel -> UserUid = TEXT ( "cometchat-uid-1" );
Panel -> AddToViewport ();
}
Configuration Properties
SDK Config
Property Type Default Description AppIdFString— Your CometChat App ID RegionFString"us"App region (us or eu) AuthKeyFString— Your CometChat Auth Key UserUidFString— UID of the user to log in as
Panel Style
Property Type Default Description PanelWidthfloat650Panel width in pixels PanelHeightfloat450Panel height in pixels PanelBackgroundFLinearColorDark translucent Background color AccentColorFLinearColorBlue Primary accent color TabActiveColorFLinearColorBlue Active tab color TabInactiveColorFLinearColorDark gray Inactive tab color TextColorFLinearColorLight gray Primary text color SubTextColorFLinearColorMedium gray Secondary text color FontSizefloat12Base font size SmallFontSizefloat10Small text font size CornerRadiusfloat8Border corner radius SidebarWidthfloat220Sidebar/list width
Message Style
Property Type Default Description ChatMessageFontSizefloat10Message text size ChatAvatarSizefloat24Avatar image size ChatUsernameOwnColorFLinearColorBlue Own username color ChatUsernameOtherColorFLinearColorGold Other username color
Message Filters
Property Type Default Description bShowTextMessagesbooltrueShow text messages bShowImageMessagesbooltrueShow image messages bShowVideoMessagesbooltrueShow video messages bShowAudioMessagesbooltrueShow audio messages bShowFileMessagesbooltrueShow file messages bShowCustomMessagesbooltrueShow custom messages bShowActionMessagesboolfalseShow action messages (join/leave) bShowCallMessagesboolfalseShow call messages bHideBlockedUserMessagesboolfalseHide messages from blocked users bHideDeletedMessagesbooltrueHide deleted messages bHideRepliesbooltrueHide thread replies from main chat bOnlyWithAttachmentsboolfalseOnly show messages with attachments bOnlyWithMentionsboolfalseOnly show messages with mentions bOnlyWithReactionsboolfalseOnly show messages with reactions bOnlyUnreadboolfalseOnly show unread messages
A floating circular button that toggles the UCometChatPanel open and closed. Add it to your HUD for a one-click chat experience.
Adding to Viewport
Create a Widget Blueprint with parent class CometChat Button
Set the App Id , Region , Auth Key , and User Uid properties
Add to viewport — the button appears as a floating circle
Clicking the button opens/closes the full chat panel
void AMyHUD :: BeginPlay ()
{
Super :: BeginPlay ();
UCometChatButton * ChatButton = CreateWidget < UCometChatButton >( GetWorld ());
ChatButton -> AppId = TEXT ( "YOUR_APP_ID" );
ChatButton -> Region = TEXT ( "us" );
ChatButton -> AuthKey = TEXT ( "YOUR_AUTH_KEY" );
ChatButton -> UserUid = TEXT ( "cometchat-uid-1" );
ChatButton -> AddToViewport ();
}
Configuration Properties
Property Type Default Description AppIdFString— Your CometChat App ID RegionFString"us"App region AuthKeyFString— Your CometChat Auth Key UserUidFString— UID of the user to log in as ButtonSizefloat56Button diameter in pixels ButtonColorFLinearColorBlue Button background color ButtonHoverColorFLinearColorLight blue Button hover color IconColorFLinearColorWhite Icon/text color IconFontSizefloat20Icon font size
Blueprint Methods
Method Returns Description ToggleChatPanel()voidOpen or close the chat panel programmatically IsPanelOpen()boolCheck if the panel is currently visible
Usage Pattern
The typical setup is to add UCometChatButton to your HUD. It handles creating and managing the UCometChatPanel internally:
The panel handles SDK initialization, login, and data fetching automatically when opened. You only need to provide the configuration properties.
Next Steps
Setup Install the plugin and configure your project.
Advanced Configuration Fine-tune SDK settings and connection management.