tencent cloud

All product documents
Tencent Real-Time Communication
Last updated: 2023-09-26 16:57:22
Unity
Last updated: 2023-09-26 16:57:22
This document describes how to quickly integrate TRTC SDK for Unity into your project.

Environment Requirements

Unity 2020.2.1f1c1 is recommended.
Supported platforms: Android, iOS, Windows, macOS (alpha testing)
Modules required: Android Build Support, iOS Build Support, Windows Build Support, MacOS Build Support
If you are developing for iOS, you also need:
Xcode 11.0 or above
A valid developer signature for your project

Integrating SDK

1. Download the SDK and demo source code.
2. Decompress the ZIP file and copy TRTCUnitySDK/Assets/TRTCSDK/SDK to the Assets directory of your project.

FAQs

What should I do if a network access error occurs on Android?

Copy /Assets/Plugins/AndroidManifest.xml to the same directory of your project.

What should I do if the SDK does not have mic or camera access on Android?

You need to add mic and camera permission requests manually when building for Android. For details, see the code below:
#if PLATFORM_ANDROID
if (!Permission.HasUserAuthorizedPermission(Permission.Microphone))
{
Permission.RequestUserPermission(Permission.Microphone);
}
if (!Permission.HasUserAuthorizedPermission(Permission.Camera))
{
Permission.RequestUserPermission(Permission.Camera);
}
#endif
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon