[XRI] User Interface

리유리·2022년 10월 18일
0

XR Interaction Toolkit

목록 보기
7/7
post-thumbnail

VR 에서 User Interface (UI) 가 작동하도록 하는 방법에 대해 알아보기

📌 과정

  • Canvas 생성

    • Render Mode : World Space, 메인 카메라 지정
    • position, scale, width, height 등 Transform 은 원하는대로 설정
  • CanvasTracked Device Graphic Raycaster 스크립트 추가

    • XR Interaction Toolkit 에서 사용할 수 있도록 Graphic Raycaster 재정의
  • EventSystem 의 Standalone Input Module 스크립트 삭제 및 XR UI Input Module 스크립트 추가

    • 좌우 손 컨트롤러의 동작이 UI 요소에 Raycast 되도록 도와주는 스크립트
  • 컨트롤러 > XR Ray Interactor > Raycast Mask : UI 로 설정


📌 결과

profile
내 이름은 이유리, 거꾸로 해도 이유리

0개의 댓글