This document describes how to quickly integrate TRTC SDK for Unity into your project.
Android Build Support
, iOS Build Support
, Windows Build Support
, MacOS Build Support
TRTCUnitySDK/Assets/TRTCSDK/SDK
to the Assets
directory of your project.Copy /Assets/Plugins/AndroidManifest.xml
to the same directory of your project.
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?