Other Languages: 简体中文
The open source project shows the basic integration logic of Unity RTC SDK
in different scenes. Each MainScene
in the example is independent.
├─ API-Examples // RTC API Examples, basic audio and video call, joining multiple rooms, and spatial sound.
│ ├─ Examples // Examples
│ │ ├─ Basic // Basic features
│ │ │ ├─ JoinChannel // Sample code for joining an RTC channel
│ │ │ ├─ JoinAudioChannel // Sample code for joining an audio channel
│ │ │ ├─ JoinMultiChannel // Sample code for joining multiple RTC channels
│ │ │ │
│ │ ├─ Advanced // Advanced features
│ │ │ ├─ 3DAudio // Sample code for spatial sound
│ │ │ ├─ MultiVideoChat // Sample code for group audio and video call
│ │ │ ├─ AudioVolumeIndication // Sample code for audio volume indication
│ │ │ ├─ CustomAudioRender // Sample code for the external audio render
│ │ │ ├─ CustomAudioInput // Sample code for the external audio input
│ │ │ ├─ CustomVideoInput // Sample code for the external video input
│ │ │ ├─ DeviceManager // Sample code for managering audio/video devices
│ │ │ ├─ LiveStreaming // Sample code for live-streaming
│ │ │ ├─ ScreenShareOnDesktop // Sample code for sharing screens on the desktop
│ │ │
├─ ├─ Utils // Utilities
├─ ├─ Editor // Editor settings
│ │ ├─ Builder.cs // Builder settings for platforms
├─ ├─ Plugins // Plugin folder
│ │ ├─ Android // Android platform
│ │ │ ├─ AndroidManifest.xml
Before starting the demo project, make sure your development environment meets the following requirements:
Environment | Description |
---|---|
Unity Editor | 2019.4.30f1 or later |
-
Create a project and get
App Key
. Activate required services, such as Audio & Video Call. -
Download the Unity RTC SDK. Integrate the SDK following the procedure below. For more information, see the Integrate SDK for Unity.
- Move
com.netease.game.rtc-*.*.*.tgz
in the SDK to thePackages
folder. - Open
Package Manager
in theUnity Editor
. Click"+"
icon. Click"Add Package from tarball..."
and select and importcom.netease.game.rtc-*.*.*.tgz
in thePackages
folder.
- Move
-
After you import the SDK, select a
MainScene
you want to run and clickCanvas
. SpecifyAPP KEY
,TOKEN
,CHANNEL_NAME
,UID
, and other required information in the script bound to the scene, then run the app. -
To build specific features, you can refer to the sample code in the SDK.