2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Meta Quest】パススルー設定方法

2
Last updated at Posted at 2025-12-03

アドカレ

KENTOのひとりアドカレ4日目の記事です。
https://qiita.com/advent-calendar/2025/kento

環境情報

ツール/SDK バージョン
Unity 6000.0.62f1
Meta XR Core SDK 81.0.0
Open XR Plugin 1.16.0
XR Interaction Toolkit 3.0.9

事前準備は以下の通りです。

パススルー設定からビルドまで

せっかくなので、OpenXRベースの汎用的なXR Originを使ったサンプルを作っていきます。

XR Originは以下パスにあります。これをシーンに置いていきます。
Assets/Samples/XR Interaction Toolkit/3.0.9/Starter Assets/Prefabs/XR Origin (XR Rig).prefab

まずはSkyboxが邪魔だと思うので消してしまいましょう。
image.png

次にOpenXR Feature Groupsからパススルー設定をオンにします。
image.png

そのあと、OVR関連のコンポーネントを用意していきます。OVRManagerとOVRPassthroughLayerをアタッチします。

image.png

OVR ManagerのPassthrough SupportをSupportedに変更します。
image.png

下の方にもパススルーの設定項目があるのでチェックを入れておきます。
image.png

次にOVR Passthrough LayerのPlacementをUnderlayに設定します。
image.png

Cameraにも設定が必要です。Background TypeをSolid Colorに変更します。RGBAは全部0でOKです。

image.png

利用するRender Pipeline AssetのHDRが有効だとパススルーが有効化されないのでオフにします。
image.png

最後に、AndroidManifestを編集します。ここまで設定を行った場合、Update AndroidManifest.xmlを選択すると自動でファイルの内容が更新されます。

image.png

ファイルに以下が追記されていれば成功です。

 <uses-feature android:name="com.oculus.feature.PASSTHROUGH" android:required="false" />

ここまで設定してビルドすればパススルー状態となります。

2025AdventCalendar4.gif

参考リンク

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?