- Mac computer with silicon CPU (M1 or above)
- XCode
- Apple Developer membership
- Unity 2022.3 LTS
- Unity Developer license - Pro/Plus/Enterprise
- Agora Developer account
- Agora Video SDK that includes VisionOS plugin
This section shows you how to prepare, build, and run the sample application.
To build and run the sample application, get an App ID:
-
Create a developer account at agora.io. Once you finish the signup process, you will be redirected to the Dashboard.
-
Navigate in Agora Console on the left to Projects > More > Create > Create New Project.
-
Save the App ID from the Dashboard for later use.
-
Clone this repo and open the project from this folder
-
Set up Unity environment for the VisionOS
-
Download the latest SDK, temporarily a preview in the Release section
-
Open TestAgoraVP scene
-
Make sure if your AppID has token or not. Things won't work if you don't supply a token if your AppID requires one. We recommend use an AppID for testing first before applying token logic.
-
Use the Web Demo as a second user to test the RTC call.
-
Build the project. For Simulator, make sure the Target SDK is set to "Simulator SDK"
-
(Temporarily) with the Preview SDK, remember remove the ARM64 folder from the Framework or you will get lots of duplicate symbol error message.
-
Build and Run the project; you should see the screen similar to the first screenshot of this README file
-
Join the channel using the WebDemo and you should have enabled video chat between the two users
-
If everything works well in the Simulator, you should have high confidence that the project works on the device. Set the Target SDK to "Device SDK" on Unity Editor.
-
Make a build again, and follow the usual build process to build for the target device
-
After deploying, you should see similar set up like the second screenshot picture.
The MIT License (MIT).