VR 콘텐츠 기초

[Meta Quest, VR, Oculus] FlatUnityCanvas, Canvas, RayExamples, VR에서 Ray로 Button 누르기

다모아 2023. 10. 26. 18:18

구성

 

Pointable Canvas : 마우스를 올렸을 때

 

OVR Canvas Mesh Renderer : Rendering 해주는 역할

OVRCanvas Inspector

Pointable Canvas Mesh의 Forward Element에 OVRCanvas - PointableCanvas가 Ray 감지 역할을 하는 것 같음

이걸 넣지 않으면 Button 클릭이 안됌

 

Pointable Canvas의 Forward Element에 넣지 않는 이유는


Mesh

[none] Mesh Fillter : 동적으로 Mesh를 가져옴

 

4개가 세트

 

2개가 세트


Canvas - 

Canvas Render Texture - 필수

Pixels Per Unit이랑 Scale이랑 연관 500 x 0.002 = 1


PointableCanvasModule(EventSystem)

 


 

Unity 에서 사용하는 btn onClick을 해서 Debug를 찍었더니 나옴


https://developer.oculus.com/documentation/unity/unity-isdk-create-ui/

 

Create a Curved or Flat UI | Oculus Developers

 

developer.oculus.com