Coder Social home page Coder Social logo

helloagoravision's Introduction

Vision Pro Unity Quick Start with Agora SDK

Sample Scene

Simulator

Screenshot simulator

VisionPro device

Screenshot simulator

Developer Environment Prerequisites

  • 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

Quick Start

This section shows you how to prepare, build, and run the sample application.

Obtain an App ID

To build and run the sample application, get an App ID:

  1. Create a developer account at agora.io. Once you finish the signup process, you will be redirected to the Dashboard.

  2. Navigate in Agora Console on the left to Projects > More > Create > Create New Project.

  3. Save the App ID from the Dashboard for later use.

Project Description

Create XCode Project

  1. Clone this repo and open the project from this folder

  2. Set up Unity environment for the VisionOS

  3. Download the latest SDK, temporarily a preview in the Release section

  4. Open TestAgoraVP scene

  5. Fill in App ID and Channel Name.
    VP-agoramanager

  6. 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.

  7. Use the Web Demo as a second user to test the RTC call.

  8. Build the project. For Simulator, make sure the Target SDK is set to "Simulator SDK" vp-similatorSDK

  9. (Temporarily) with the Preview SDK, remember remove the ARM64 folder from the Framework or you will get lots of duplicate symbol error message.vp-remove-arm64

  10. Build and Run the project; you should see the screen similar to the first screenshot of this README file

  11. Join the channel using the WebDemo and you should have enabled video chat between the two users

  12. 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. VP-devicebuild

  13. Make a build again, and follow the usual build process to build for the target device

  14. After deploying, you should see similar set up like the second screenshot picture.

License

The MIT License (MIT).

helloagoravision's People

Contributors

icywind avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.