iT邦幫忙

2021 iThome 鐵人賽

DAY 23
0
Software Development

從零開始了解Unity或Unreal Engine應用於VR軟體開發系列 第 23

Day 23. VR菜單

耶~發現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中:

  1. Player的other setting沒看到Virtual Reality Supported
  2. 沒找到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


上一篇
Day 22. Unreal 再見
下一篇
Day 24. VR菜單2
系列文
從零開始了解Unity或Unreal Engine應用於VR軟體開發31
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言