Changyu Lee

Meta XR SDK: 1) Ray 기반 UI Button 구현

Published at
2024/04/21
Last edited time
2024/04/20 18:36
Created
2024/04/20 18:29
Section
XR
Status
Done
Series
Tags
Programming
AI summary
Keywords
Meta Interaction SDK
Meta Quest
Language

Unity Event Wrapper 를 활용하여 버튼 구현

보통은 트리거를 통한 Ray Interaction으로 UI를 클릭하므로, 이를 구현하고자 함
기본적으로 Interactor가 있는 OVRRig 컴포넌트 세팅이 완료되었을 때를 가정함
기본적으로 클릭이 가능한 UI가 만들어지려면 Interactable 이 붙어야함
또한, Plane Surface를 통해 Interaction 영역임을 표시해야함
스크립트 붙이는 순서
Plane Surface → Ray Interactable → Interactable Unity Event Wrapper
이 순서로 넣으면 필요 컴포넌트를 잡는 경우도 있지만 Surface, Interactable View 부분을 잘 넣어주자.