This document describes how to quickly run the IM demo for Unity.
Platform | Version |
---|---|
Unity | 2019.4.15f1 or later |
Android | Android Studio 3.5 or later; devices with Android 4.1 or later for apps |
iOS | Xcode 11.0 or later. Ensure that your project has a valid developer signature. |
You have signed up for a Tencent Cloud account and completed identity verification.
Note:If you already have an app, record its SDKAppID and obtain key information.
A Tencent Cloud account can create a maximum of 300 IM apps. If you want to create a new app, disable and delete an unwanted app first. Once an app (along with its SDKAppID) is deleted, the service it provides and all its data are lost. Proceed with caution.
UserID
and the corresponding UserSig
, and copy the signature information for use in Step 5.Use Unity to create a project, and record the project directory.
{
"dependencies":{
"com.tencent.imsdk.unity":"https://github.com/TencentCloud/TIMSDK.git#unity"
}
}
Open the project in the Unity Editor, wait until dependencies are loaded, and confirm the Tencent Cloud IM is successfully loaded.
SDKAppID
, UserID
, and UserSig
obtained in Step 1 to start the test.iOS, Android, Windows, and macOS are supported.
Check that the device is not occupied by other resources. Alternatively, click Build to generate an APK package, drag it to the simulator, and run it.
If an error is reported for an iOS device after the demo configured as above is run, choose Product > Clean to clean the product, and build the demo again. You can also close Xcode and open it again, and then build the demo again.
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/UserInterface/Bootstrap.cs(23,20): error CS0117: 'Collab' does not contain a definition for 'ShowChangesWindow'
Choose Window > Package Manager on the toolbar of the Editor and downgrade Unity Collaborate to 1.2.16.
Library/PackageCache/com.unity.textmeshpro@3.0.1/Scripts/Editor/TMP_PackageUtilities.cs(453,84): error CS0103: The name 'VersionControlSettings' does not exist in the current context
Open the source code and delete the code snippet of || VersionControlSettings.mode != "Visible Meta Files"
.
Was this page helpful?