

We will need to make sure our Mac app also has a unique package name, I chose. Once Unity finishes its setup process, open the Player Settings. If it is not already selected, select PC, Mac & Linux from the Platform list and select Mac as the Target Platform then click Switch Platform. Open the Build Settings and drag the TestSceneHome.unity & TestSceneHelloVideo.unity scenes from the assets list into the “ Scenes in Build” list. We can scroll through the TestHelloUnityVideo.cs file to see all the various event callbacks the Agora Voice SDK for Unity offers. Then replace “YOUR_APPID ” on line 16 by copying and pasting over it. Don’t worry about charges during early development, they give you the first 10,000 minutes free every monthĪt this point, we need to log into our Agora developer account and create a new AppID or select an existing one.

You will need to change the App ID to a new one you create on the Agora website. The file will open in Visual Studio ( Unity’s default code editor).

Double click the TestHelloUnityVideo.cs file within the assets panel to edit it. Great! Now that we have the plugin downloaded and imported to our project we need to make 1 quick update before we can build and run our app. Once the download is complete, click and Import the assets into your project. Once the plugin page has loaded, go ahead and click Download. The next step is to navigate to the Unity Store ( if you are in the scene view, click the Unity Store tab) and search for “Agora Video SDK”. To start, open Unity and create a blank new project named Agora Video Demo. Pair that with our ability to interoperate between our Native SDK and Unity SDK and you have a closed-loop solution ready to build on.įollow along in this tutorial to see just how easy it is to add live real time video communication to your desktop or laptop-based Mac app. As if the Agora Video SDK for Unity wasn’t good enough with Android, iOS, and Windows support, it just got that much better by adding Mac support as well.
