- Create a new Unity project.
- Using Unity's Package Manager, download and install the Agora.io video package.
- Open File > Build Settings and add both "SceneHome" and "SceneHelloVideo" to "Scenes in Build".
- Log into Agora.io. (If you don't have the EML Agora.io credentials, ask an EML staff member.)
- In the Console/Dashboard, make sure you're on the "Overview" tab. Then under "Project Management", click "More".
- Select an existing project or create a new project, then click "Config" for that project. (Ideally, you should use an existing one, because our free license only allows for a maximum of 20 projects INCLUDING DELETED PROJECTS.)
- Under "Security", turn on "Secondary Certificate". This enables the option "Temp token for audio/video call". IMPORTANT: Certificates and Tokens are different things!
- Click "Generate temp RTC Token". Copy the resulting token to your clipboard.
- In Unity, edit
TestHelloUnityVideo.cs
. On Line 22, changeprivate string token = "";
to:private string token = "REPLACE_THIS_WITH_YOUR_TOKEN";
- Open the scene TestHome and click the "play" button. The game will change scenes to TestHelloUnityVideo. (Do not start from TestHelloUnityVideo.)
- Success! Your computer's camera should automatically be detected, and your video should appear on the objects in the scene.