Skip to main content

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

  1. Create a Widget Blueprint with parent class CometChat Panel
  2. Set the App Id, Region, Auth Key, and User Uid properties
  3. Add to viewport via Create WidgetAdd to Viewport
Or use the UCometChatButton widget which manages the panel automatically.

Configuration Properties

SDK Config

PropertyTypeDefaultDescription
AppIdFStringYour CometChat App ID
RegionFString"us"App region (us or eu)
AuthKeyFStringYour CometChat Auth Key
UserUidFStringUID of the user to log in as

Panel Style

PropertyTypeDefaultDescription
PanelWidthfloat650Panel width in pixels
PanelHeightfloat450Panel height in pixels
PanelBackgroundFLinearColorDark translucentBackground color
AccentColorFLinearColorBluePrimary accent color
TabActiveColorFLinearColorBlueActive tab color
TabInactiveColorFLinearColorDark grayInactive tab color
TextColorFLinearColorLight grayPrimary text color
SubTextColorFLinearColorMedium graySecondary text color
FontSizefloat12Base font size
SmallFontSizefloat10Small text font size
CornerRadiusfloat8Border corner radius
SidebarWidthfloat220Sidebar/list width

Message Style

PropertyTypeDefaultDescription
ChatMessageFontSizefloat10Message text size
ChatAvatarSizefloat24Avatar image size
ChatUsernameOwnColorFLinearColorBlueOwn username color
ChatUsernameOtherColorFLinearColorGoldOther username color

Message Filters

PropertyTypeDefaultDescription
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

UCometChatButton

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

  1. Create a Widget Blueprint with parent class CometChat Button
  2. Set the App Id, Region, Auth Key, and User Uid properties
  3. Add to viewport — the button appears as a floating circle
  4. Clicking the button opens/closes the full chat panel

Configuration Properties

PropertyTypeDefaultDescription
AppIdFStringYour CometChat App ID
RegionFString"us"App region
AuthKeyFStringYour CometChat Auth Key
UserUidFStringUID of the user to log in as
ButtonSizefloat56Button diameter in pixels
ButtonColorFLinearColorBlueButton background color
ButtonHoverColorFLinearColorLight blueButton hover color
IconColorFLinearColorWhiteIcon/text color
IconFontSizefloat20Icon font size

Blueprint Methods

MethodReturnsDescription
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.