A collection of demos that shows how to use VirtualCam prefab for Unity
Any scene of this project can run successfully alone.
This project contains these scenes:
- SampleARScene: runs in mobile phone with AR setting. Shares the view from the ARCamera.
- SampleMinScene: runs in any platform (including Editor). Shares any assigned camera.
- Agora Account and App IDs (tokens optional)
- Unity 2019 LTS (Recommended) and up
- Agora Unity SDK v3.x.x
- set your AppID and token (optional) to AgoraVirtualCamera game object in the scene.
- check Join/Leave/Microphone/Quit button set up on AgoraVirtualCamera
- hit Play for Editor and check the shared camera view on a different device using Agora WebDemo app or another Agora app (e.g. Unity Demo) using the same AppId and Channel information.
- For AR demo on mobile devices, following the standard Unity ARFoundation package set up. Also read the README file from Agora Video SDK for configuration recommendations.
- You can find full API document at Document Center
- VirtualCamPrefab repo: https://github.com/AgoraIO-Community/Unity-Virtual-Camera-Prefab
The MIT License (MIT).