BUILT FOR UNITY

Unity
Chat SDK

Connect players with Tencent RTC’s Unity Chat SDK. Build party messages and guild conversations into your own in-game interface.

DEVELOPER RESOURCES

Unity Chat SDK Docs & Examples

Bring the party together

Give teammates a place to plan the next move inside your game.

A conversation beyond the match

Keep the group connected with invitations and persistent conversations.

UNITY CHAT CAPABILITIES

Messaging foundations for your product

Direct conversations

  • One-to-one messages
  • Your own interface

Group messaging

  • Shared conversations
  • Membership APIs

Rich messages

  • Text and media
  • Custom application content

Conversation state

  • History and unread counts
  • Your application store

User identity

  • Your own user IDs
  • UserSig authentication

App integration

  • C# messaging APIs
  • Platform-specific lifecycle

Explore the Unity Chat APIs

Start with the APIs that connect your application.

Initialize

Connect the game client

Initialize the SDK with persistent local paths for your packaged game.

Read the Documentation
ChatSession.cs
var config = new SdkConfig {
  sdk_config_config_file_path =
    Application.persistentDataPath + "/TIM-Config",
  sdk_config_log_file_path =
    Application.persistentDataPath + "/TIM-Log"
};
TencentIMSDK.Init(sdkAppID, config);

CUSTOMIZATION

Your experience. Your way.

Build your own interface around connected conversations.

Build an experience of your own

Connect messaging events to the screens and interactions your product needs.

Read the Documentation

GET STARTED

Your first conversation starts here

  1. 01

    Create your app

    Set up a Chat application and your test users.

    Open Chat Console
  2. 02

    Add the Unity Chat SDK

    Follow the platform guide to connect your project.

    Follow the Integration Guide
  3. 03

    Connect your users

    Sign in two test users and send your first message.

    Connect Your Users
Unity Chat SDK
Packages/manifest.json
{
  "dependencies": {
    "com.tencent.imsdk.unity":
      "https://github.com/TencentCloud/chat-sdk-unity.git#unity"
  }
}
ChatSession.cs
var config = new SdkConfig {
  sdk_config_config_file_path =
    Application.persistentDataPath + "/TIM-Config",
  sdk_config_log_file_path =
    Application.persistentDataPath + "/TIM-Log"
};
TencentIMSDK.Init(sdkAppID, config);

Unity Chat SDK FAQs

Does the Unity SDK include my game’s chat UI?

The SDK provides messaging APIs. Your game controls the overlay, input focus, player permissions, and party membership. Validate packaged builds as well as the Editor; WebGL has additional integration requirements.

Does the Unity Chat SDK include a ready-made UI?

The SDK supplies messaging APIs and events. Your application builds the chat screens. The illustrations show possible app experiences.

How do I authenticate users of the Unity Chat SDK?

Generate production UserSig on your backend. Pass it to the client for authentication and keep your application secret on the server.

Are these Unity snippets a complete application?

They show individual integration steps. Follow the full guide for imports, initialization, login, error handling, and target-specific configuration. Test messaging with separate accounts before release.

How is Unity Chat SDK usage priced?

Hosted Chat service usage follows your selected plan. Check the included features and allowances for your application; optional plugins and Call services can have separate requirements.

How do I integrate Unity Chat SDK with Unity?

Use the documented Unity integration, connect player identities and render messaging in your game UI. Test the target build and pause/resume lifecycle rather than only the editor.

How do I test Unity Chat SDK before releasing my app?

Check login, SDK readiness, send and receive events, and message state after reconnecting.

How do I customize the interface for Unity Chat SDK?

Build your own conversation list, message rendering and composer around documented SDK events.

Find support for your next step

Talk about your application

Discuss your product, expected usage, and integration needs.

Contact Sales

Build your next conversation

Build your game with the Unity Chat SDK.