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
Examples & Source
Explore the messaging experience and the official developer resources.
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.
Connect the game client
Initialize the SDK with persistent local paths for your packaged game.
Read the Documentationvar 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);Connect player identities
Authenticate the player before opening their conversations.
Read the DocumentationTencentIMSDK.Login(userID, userSig,
(int code, string desc, string data, string userData) => {
// Handle the login result.
});Keep the party talking
Send a prepared Message to another player and handle the delivery result.
Read the Documentationvar messageId = new StringBuilder(128);
TencentIMSDK.MsgSendMessage(
recipientID, TIMConvType.kTIMConv_C2C,
message, messageId,
(int code, string desc, string data, string userData) => {
// Update your message state from the result.
});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 DocumentationGive conversations a place to grow
Connect people and groups through chat that belongs inside your application.
Read the DocumentationGET STARTED
Your first conversation starts here
- 01
- 02
Add the Unity Chat SDK
Follow the platform guide to connect your project.
Follow the Integration Guide - 03
{
"dependencies": {
"com.tencent.imsdk.unity":
"https://github.com/TencentCloud/chat-sdk-unity.git#unity"
}
}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 SalesBuild your next conversation
Build your game with the Unity Chat SDK.

