7
4

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 3 years have passed since last update.

AR Foundation 4.0 以上でカメラが表示されないときの対応

Posted at

何があったか

Android用ARCore拡張機能のクイックスタート の通りに動かしたのにカメラが表示されずに真っ暗!!
カメラのパーミッション確認も表示されない。

※下記画像が実行時の画面です。
1.png

環境

  • Windows 10 Pro Version.1909
  • Unity 2019.4.7f1
  • ARCore Extensions for AR Foundation v1.18.0

発生手順

  1. Android用ARCore拡張機能のクイックスタート の通りに、package.jsonファイルを選択してインストール

  2. AR Fundation と ARCore XR Plugin のバージョンを確認すると、preview.6 - 3.1.0

  3. Android用ARCore拡張機能のクイックスタート に下記のように記載があるため、preview.6 - 4.1.0 にアップデート

    ・AR Foundation package version 4.0.0.
    ・ARCore XR Plugin package version 4.0.0.
    You may encounter compatibility issues if you do not use these versions.

  4. Hierarchy から Main Camera を削除

  5. Hierarchy に AR Session Origin と AR Session を追加

  6. Android用ARCore拡張機能のクイックスタート の通りに、プロジェクトを設定

解決方法

  • XR Plug-in Management の Plug-in Providers を設定
    1. Project Settings > XR Plug-in Management を選択
    2. Plug-in Providers の ARCore のチェックを入れる
2.png

XR Plug-in Management の Plug-in Providers について

About AR Foundation | AR Foundation | 4.0.2 に下記のように記載がありました。

Provider plugin setup
Provider plugins must be enabled before AR Foundation can use them. XR Plugin Management provides a UI to enable specific plug-in providers for each target platform.

7
4
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
7
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?