# Project Setup for XR

{% tabs %}
{% tab title="Tutorial" %}
For mixed reality to work we need to be able to see the environment around the headset. For passthrough to work we need to add a couple more elements within the project.&#x20;

Don't forget to enable Passthrough to work using Quest Link (if you aren't using a cable).

<figure><img src="https://1511627699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwBY0yo2lTxFMvwpoAeN8%2Fuploads%2Fbf27VDPlN6pAVAH2UY1W%2FSetupPassthroughOnCameras.gif?alt=media&#x26;token=469490c8-136d-460c-9bcc-12d983138e90" alt=""><figcaption><p>Setup Passthough on OVRCameraRig...</p></figcaption></figure>

* Select the OVRCameraRig.
  * This may be a child of the 'OVRCameraRigInteraction' asset.
  * Set 'Passthrough Support' to 'Supported' or 'Required' under the General tab.
  * Enable 'Enable Passthrough' under 'Insight Passthrough'.
  * Add a 'PassthroughOVRLayer' component to the OVRCameraRig asset.
    * Set the Placement to 'Underlay' if you want the passthrough to be behind everything.
    * Set the Composition Depth to 1.

<figure><img src="https://1511627699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwBY0yo2lTxFMvwpoAeN8%2Fuploads%2FyBKfWqUL8yYCVWs3KCBj%2FSetupAlphaOnCamera.gif?alt=media&#x26;token=ab1ef762-6722-4514-b414-2c8a21cd8f1a" alt=""><figcaption><p>Adjust Alpha and Color on CenterEyeAnchor...</p></figcaption></figure>

* Select the 'CenterEyeAnchor' asset under 'CameraOVRRig / TrackingSpace'.
  * Set the Background color to Black with Alpha at 0.

<figure><img src="https://1511627699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwBY0yo2lTxFMvwpoAeN8%2Fuploads%2FeFKDZ6Vpqzw7LrGdwzjr%2FDisableSkyboxForPassthrough.gif?alt=media&#x26;token=59e2eb0c-7f73-424e-87e2-06216e4082eb" alt=""><figcaption><p>Remove Default Skybox on Lighting window / Environment...</p></figcaption></figure>

* Select the 'Lighting Window / Environment'.
  * Set the 'Skybox' to 'None'.
    {% endtab %}

{% tab title="Troubleshooting" %}

### Passthrough doesn't work!

If you are using the Quest Link to test your project, make sure that you have enabled with the following :&#x20;

* Go to the Oculus Desktop App (v37.0 or later).
* Go to the Settings > Beta section.
* Enable 'Developer Runtime features'.
* Enable 'Passthrough over Meta Quest Link'.

### Passthrough Issues

#### Passthrough doesn't work at all

* Select the OVRCameraRig.
  * This may be a child of the 'OVRCameraRigInteraction' asset.
  * Set 'Passthrough Support' to 'Supported' or 'Required' under the General tab.
  * Enable 'Enable Passthrough' under 'Insight Passthrough'.
  * Add a 'PassthroughOVRLayer' component to the OVRCameraRig asset.
    * Set the Placement to 'Underlay' if you want the passthrough to be behind everything.
    * Set the Composition Depth to 1.

#### Passthrough shows a Blue Environment

* Select the 'CenterEyeAnchor' asset under 'CameraOVRRig / TrackingSpace'.
  * Set the Background color to Black with Alpha at 0.

#### Passthrough shows the Default Skybox

* Select the 'Lighting Window / Environment'.
  * Set the 'Skybox' to 'None'.

### Camera Issues

#### The experience is black...

Make sure to enable the OVRCameraRig or OVRCameraRigInteraction assets if you disable them while building the experience.&#x20;

### Meta XR Errors / Warnings

#### 'The Oculus Integration Package (v63) and Meta Simulator Package (v62) must match to ensure correct functionality'

This issue may not break your experience. This is due to error differences in the packages that Meta will no doubt align at some point. You may want to try and find the previous versions of the All-in-one SDK, or wait until the Simulator package gets updated.&#x20;
{% endtab %}
{% endtabs %}
