2015/08/23

[Unity 3D 中文教學] Unity 3D + Google CardBoard for Android


使用Unity3D 版本的CardBoard apk (Android)

0. Unity 3D使用版本為Unity4.5以上。

1. 開啟一個新的Unity 3D專案。Unity 3D → Create New Project。

2. 匯入CardboardDemoForUnity與CardboardSDKForUnity這兩個apk檔案。

3. Assets → Cardboard → 在DemoScene資料夾開啟DemoScene。

4. File →  Build Settings,選擇 Android 平台(Switch Platform)。

5. 選擇Player Settings :
  • Resolution and Presentation → Landscape Left(手機方向橫左) 和 Landscape Right(手機方向橫右)打勾
  • Other Settings → Bundle Identifier 輸入:com.example.CardboardUnityDemo

6. Build發佈apk,在手機上測試。

備註:
1. 如果要使用CardBoard鏡頭在自己VR專案中,則將Unity 3D原本的Main Camera換成Project → Cardboard 資料夾 → CardboardMain。
2. 下載CardboardDemoForUnity與CardboardSDKForUnity這兩個apk檔案的網址:https://developers.google.com/cardboard/unity/download

Shine.
亮星遊戲工作室 Facebook:https://www.facebook.com/ForestKeeper.Shining