LoginSignup
0
1

More than 5 years have passed since last update.

Unity - AndroidでCardboardが有効にならない

Last updated at Posted at 2018-05-25

症状

Unity2017.3.1f1にて、AndroidでCardboardが有効にならない問題に直面しました(他のバージョンでも起きるかも)

下記エラー文

05-04 03:52:47.189: E/Unity(10148): Error trying to call delegated method load. null
05-04 03:52:47.190: E/Unity(10148): Google VR Error [Cardboard]: Exception caught while loading GoogleVR. Attempt to invoke virtual method 'long java.lang.Long.longValue()' on a null object reference
05-04 03:52:47.190: E/Unity(10148): Google VR Error [Cardboard]: Google VR had a fatal issue while loading. VR will not be available.
05-04 03:52:47.194: E/Unity(10148): Error trying to call delegated method unload. null

原因

Unityに統合されているCardboardが壊れてるっぽい。

対策

GoogleVR SDK(v1.120以降)を導入する or Unityの修正パッチをインストールする。

対応しているパッチのバージョンについてはこちら。

For people targeting cardboard on Android please update your Google VR SDK to 1.12 or later.

Unity5.6以降からGoogleVR SDKなくてもCardboardは動くようになったので、SDK入れずに運用してたからこれは盲点(´・ω・`)

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