LoginSignup
3
3

More than 5 years have passed since last update.

ios用GoogleVR 環境構築

Posted at

環境

  • Unity2017.1.0f3
  • iOS 10.3.3
  • XCode 8.3.3
  • GoogleVR SDK 1.7

環境構築

とりあえずGoogle VRのドキュメントを見る
ドキュメント

ドキュメントのSet up the Google VR Unity SDKの項目からSDKをダウンロードし,インストール

Builg and run the project on an iOS deviceの項目に従ってセットアップする.

さらに,
Player Settings > Other Settings, Renderingの一番下 Virtual Reality Supportedにチェック

Target minimum iOS Version を 8.0に設定

デモ

GoogleVR > Demos > Scenes > GVRDemoを選択して開く

再生するとエラーが大量に出るので,

Player > MainCamera > GvrReticlePointerのRaycastModeをCameraにする.

ProjectビューのGvrReticlePointerにも同様の設定をしておく.

=> 動かない,落ちる

1.7はAudio関連に問題があるそうなので,
ProjectビューをAudioで検索し,でてきたものを全て消す

これによって
The referenced script on this Behaviour (Game Object 'Main Camera') is missing!
と同じようなのがたくさん出るので,対象のコンポーネントを削除する

ビルド => 成功

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3