6
10

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 初心者が Oculus Go で VR Samples を動かすまで

Last updated at Posted at 2018-07-31

目的

  • Oculus Go で VR Samples を動くようにする (ゆくゆくは自分でアプリを作れるように…)
    • VR Samples: Unity が提供している VR のサンプルコンテンツ

これを書いている人の知識レベル

  • Unity を全く触ったことが無い
  • VR ゲームを少し遊んだことがある

開発環境や各種バージョン

  • PC
    • Macbook Pro
      • macOS High Sierra 10.13.6
  • Java
    • 8 Update 181
  • android studio
    • 3.1.3
  • Unity
    • 2018.2

環境構築

Oculus

  • Oculus Go の初期セットアップをする(ここでは割愛)
  • ユーザ登録をする

開発用端末

インストール

各種環境設定

  • android studio を起動する
    • sdk が入る
  • Unity を起動する
    • project を作成する
      • Template: 3D
      • その他: 適当
  • Unity の設定をする
    • Unity -> Preferences -> External Tools -> Android
      • SDK: Browse を押すとよろしく設定してくれる
      • JDK: 同上
    • File -> Build Settings
      • Platform を Android に変更(Switch Platform)する
    • Switch Platform ボタン横の Player Settings
      • other settings -> identification
        • package name
          • 適宜変更する
        • Minimum API Level
          • Android 7.1 に変更する
      • XR Settings
        • Virtual Reality Supported にチェックを入れる
          • Virtual Reality SDKs に Oculus を選択する
  • Asset の設定をする
    • Asset Store 窓で VR Samples を検索 / Download / Import する
    • Project 窓の Assets/VRSampleScenes/Scenes/MainMenu を Hierarchy 窓にドラッグする
  • Oculus Go を開発者モードにする
    • Oculus アプリ -> 設定 -> 該当の Oculus Go 端末 -> その他の設定
      • 開発者モードをオンにする
  • Oculus Go と PC を USB ケーブルで接続する
    • USB デバッグを許可しますか、と出るので、このパソコンからの USB デバッグを常に許可する、にチェックを入れて OK を押す
  • Unity でアプリケーションをビルドする
    • File -> Build & Run

遊ぶ

  • ライブラリ -> 提供元不明 -> 作成したプロジェクト名
    • たのしい

今後の展望

  • トリを飼っている気分になれるアプリを作りたい
6
10
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
6
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?