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.

Get your Application Keys

Sign up for CometChat and then:
  1. Create a new app
  2. Head over to the API & Auth Keys section and note the Auth Key, App ID, and Region

Prerequisites

Minimum Requirements
  • Unreal Engine 5.5.4 or 5.7.2
  • C++ development tools for your platform
  • CometChat account with App ID, Auth Key, and Region

Supported Platforms

Engine VersionPlatforms
UE 5.5.4Mac, Windows, iOS, Android
UE 5.7.2+Mac, Windows, iOS, Android

Install the Plugin

Option 1: Use Precompiled Binaries (No Build Required)

1

Copy the plugin source

Copy Plugins/CometChatSdk/ from the SDK repository into your project’s Plugins/CometChat/ directory.
2

Download precompiled binaries

Download the precompiled binaries for your engine version:
curl -1sLf -O 'https://dl.cloudsmith.io/public/cometchat/cometchat/raw/versions/v1.0.0-beta.1/CometChat-UE5.5.4-precompiled.zip'
3

Extract into your plugin directory

Extract the zip contents into your project’s Plugins/CometChat/ directory (merging with existing files).
4

Enable the plugin

Add the plugin to your .uproject file:
{
  "Plugins": [
    {
      "Name": "CometChat",
      "Enabled": true
    }
  ]
}
5

Open your project

Open your project in Unreal Editor — no compilation needed.
Your project structure should look like this:
YourProject/
├── Plugins/
│   └── CometChat/
│       ├── CometChat.uplugin
│       ├── Source/
│       ├── Config/
│       └── ThirdParty/chatsdk/    ← Prebuilt static libraries (all platforms)
├── Source/
└── YourProject.uproject

Option 2: Build from Source

  1. Copy Plugins/CometChatSdk/ from the SDK repository into your project’s Plugins/CometChat/ directory
  2. Regenerate project files and build

Add Module Dependency

In your game module’s .Build.cs file, add the CometChat module as a dependency:
using UnrealBuildTool;

public class YourGame : ModuleRules
{
    public YourGame(ReadOnlyTargetRules Target) : base(Target)
    {
        PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;

        PublicDependencyModuleNames.AddRange(new string[]
        {
            "Core",
            "CoreUObject",
            "Engine",
            "CometChat"   // Add this line
        });
    }
}

Verify the Plugin

After installation:
  1. Open your project in the Unreal Editor
  2. Go to Edit → Plugins
  3. Search for CometChat — it should appear and be enabled
The plugin loads at the PreDefault phase, so it’s available before your game module initializes.

Initialize CometChat

The CometChatSubsystem is a UGameInstanceSubsystem — it’s created automatically when your game starts. You need to call the Configure Async node with your App ID and Region before using any other SDK methods. This is a latent async node with On Success and On Failure pins.
  1. In any Blueprint, search for the CometChat Configure Async node
  2. Pass your App ID and Region
  3. Wire the On Success and On Failure pins
ParameterTypeDescription
App IdFStringYour CometChat App ID
RegionFStringYour app region (us or eu)
On Success returns an FCometChatUser:
  • If a saved session was restored, the user details are populated (auto-login)
  • If no saved session exists, Uid will be empty — you need to call Login next
On Failure returns an FCometChatError with error details.
Configure must be called before Login. Calling Login without configuring first will result in a failure callback.
Session restoration: If the user was previously logged in, Configure will automatically restore the session — you don’t need to call Login again. Check if the returned FCometChatUser.Uid is non-empty to determine if a session was restored.
Make sure you replace YOUR_APP_ID with your actual CometChat App ID.

Plugin Architecture

The plugin provides:
  • UCometChatSubsystem — Game instance subsystem for CometChat operations
  • Async Blueprint actions — for login, logout, send/fetch messages, groups, conversations, moderation, and more
  • CometChatEventBridge — Real-time event callbacks (40+ delegates organized by listener type)
  • UCometChatPanel — Ready-to-use tabbed chat panel widget (My Groups, Personal, Browse Groups)
  • UCometChatButton — Floating button widget that toggles the chat panel
  • Native C++ chat SDK via ThirdParty/chatsdk/ (prebuilt static libraries)

Next Steps

Now that the plugin is installed and configured, head to Authentication to log in your first user.