1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Unity】VR用に出力する方法(VRゴーグルで遊ぶ2眼ビューア)

Last updated at Posted at 2019-05-05

環境メモ
⭐️Mac OS Mojave バージョン10.14
⭐️Unity 2018.2.15f1
⭐️Xcode10.2
⭐️iPhone7(IOS 12.2)
⭐️Android8.1

VR用の画面。VRゴーグルで遊ぶ。2眼ビューア
↓↓↓↓完成図

1.Project Settingsを開く
「Edit」 - 「Project Settings」 - 「Player」 を選択する
スクリーンショット 2019-05-05 18.22.17.png

2.Default Orientationを「Landscape Left」にする
★Android
スクリーンショット 2019-05-05 17.06.54.png
★IOS
スクリーンショット 2019-05-05 18.07.48.png

警告の英語で下記の内容が書いてました

Virtual Reality Support is enabled.Upon entering VR mode, landscape left orientation will be the default orientation unless only landscape right is available.

翻訳すると

バーチャルリアリティサポートが有効になります。VRモードに入ると、横向きのみが利用可能な場合を除き、横向きがデフォルトの向きになります。 らしです。

※詳細説明は、Unityマニュアル参照
https://docs.unity3d.com/ja/current/Manual/class-PlayerSettingsAndroid.html#Resolution
スクリーンショット 2019-05-05 18.26.52.png

3.XR Settings
「Virtual Reality Supported」チェックONする。
Virtual Reality SDKsに必要なSDKを追加する
「Cardboard」を追加する。
「Oculus」を使う場合、Oculusも追加する
★Android
スクリーンショット 2019-05-05 17.08.48.png
★IOS
スクリーンショット 2019-05-05 18.08.28.png

※詳細説明は、Unityマニュアル参照
https://docs.unity3d.com/ja/current/Manual/class-PlayerSettingsAndroid.html#XR
スクリーンショット 2019-05-05 18.38.29.png

完成!!!



↓↓Google Play 無料Free
VR ピヨくまちゃんのシューティング〜VR Shooting Piyo-Kuma-Chan
vrpiyokumachan.png

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?