耶~發現Unity Learn有教怎麼做VR Menu的單元課程。
Creating a VR Menu - 2019.2
Summary
In this tutorial, you’ll set up a VR Menu in World space and configure it so users can interact with it accordingly. By the end, you will be able to set the color of a panel by pointing at a button and pulling the trigger on the handset.
如何做菜單(廢話
這個菜單可以用按鈕來選擇顏色。
要把Object的狀態改成position(0,0,0)、rotation(0,0,0)、scale(1,1,1),除了直接輸入外,還可以用reset,reset在Transform的三點選單(gear icon)
裡。除此之外,建議Camera的position為(0,3,-8)
Render Mode: World Space
// 按照整個場景的三維空間的座標
rect transform
// rect是rectangle的縮寫
Install openVR package
// 現在也叫openXR Plugin,是說安裝package,插件什麼的,每一個Project都是獨立的
Raycasts, Colliders, and a LineRenderer.
//新名詞
2020版的Unity中:
Virtual Reality Supported
XR Legacy Input Helpers
package參考:
https://learn.unity.com/tutorial/creating-a-vr-menu-2019-2#6036dc27edbc2a50f848a6fe
https://docs.unity3d.com/520/Documentation/Manual/PrimitiveObjects.html