Back to Blog

아고라 엔진 및 Magic Leap 2를 시작하기

Getting Started with Agora Engine and Magic Leap 2

아고라 엔진과 Magic Leap 2를 설정하여 화상 채팅 및 라이브 비디오 스트리밍이 가능한 실시간 참여 환경을 구축하세요.

필수 조건

Magic Leap의 설정 가이드를 따라 개발 환경을 설정하세요:

  • ML Hub를 다운로드하고 Package Manager를 통해 Unity 및/또는 네이티브용 ML SDK를 설치하세요.
  • Unity Hub를 통해 Android 빌드 지원이 포함된 Unity Editor v2022.2.0b7 이상을 다운로드하고 설치하세요. 또한 Android SDK 및 NDK 도구와 OpenJDK를 설치해야 합니다.

Unity 프로젝트 환경 설정

  1. Magic Leap의 공식 Get-Started 가이드를 따라 Unity 프로젝트를 설정하고 XR 프로그래밍 환경을 구성하세요.
  2. Agora SDK를 사용하려면 다음 옵션을 활성화해야 합니다

i. Android 플랫폼의 XR 플러그인 관리에서 Magic Leap을 활성화하세요.

Getting Started with Agora Engine and Magic Leap 2 1

ii. Make sure that Use ML Audio is enabled in XR Plug-in Management > Magic Leap Settings.

Getting Started with Agora Engine and Magic Leap 2 2

iii. Enable camera and audio recording permissions in MagicLeap > Manifest Settings.

Getting Started with Agora Engine and Magic Leap 2 3

아고라 엔진 추가

  1. Unity용 아고라 엔진 패키지를 Agora Extensions Release 페이지에서 다운로드합니다.
  2. 다운로드한 패키지를 Unity 프로젝트 자산 창에 더블클릭하거나 드래그합니다. 'Import'를 클릭합니다. 이 패키지에는 MagicLeap 예제에서 사용된 지원 자산이 포함되어 있습니다. 기존 MagicLeap Unity 예제 프로젝트와 함께 테스트하는 경우 이러한 파일을 덮어쓰지 않도록 제외할 수 있습니다.

데모 테스트

  1. Agora_MagicLeap2_Plugin > AgoraEngine > ML2Support > Demo 폴더에서 AgoraMLDemo 장면을 열습니다.

Getting Started with Agora Engine and Magic Leap 2 4
  1. 테스트를 위해 Agora 프로젝트의 APP_ID와 CHANNEL_NAME을 입력하세요. 테스트 모드 앱 ID로 데모를 먼저 테스트한 후 토큰 활성화 앱 ID를 사용하세요(토큰으로 테스트하는 방법은 README 파일을 참조하세요).
  2. 빌드 설정에서 적절한 Android 빌드 정보를 입력하세요.
  3. ML2 장치를 연결하고 빌드 및 실행을 클릭하세요.
  4. 원격 사용자의 Agora RTC 클라이언트를 하나 이상 실행합니다. 테스트 앱 목록은 https://webdemo.agora.io/를 참조하세요. 빠른 테스트를 위해 Basic Video Calling demo를 선택합니다. 앱 ID, 채널 이름을 입력하고 채널에 참여합니다.
  5. ML2 데모 앱에서 ‘카메라 연결’ 버튼을 클릭합니다.
Getting Started with Agora Engine and Magic Leap 2 5

ML2 사용자는 이제 웹 사용자의 카메라 스트림을 볼 수 있습니다. 웹 사용자도 ML2의 카메라 스트림을 볼 수 있습니다. 또한 언제든지 음성 대화를 시작할 수 있습니다.

RTE Telehealth 2023
Join us for RTE Telehealth - a virtual webinar where we’ll explore how AI and AR/VR technologies are shaping the future of healthcare delivery.

Learn more about Agora's video and voice solutions

Ready to chat through your real-time video and voice needs? We're here to help! Current Twilio customers get up to 2 months FREE.

Complete the form, and one of our experts will be in touch.

Try Agora for Free

Sign up and start building! You don’t pay until you scale.
Try for Free