# Passthrough with HTC Vive Pro from ZED 2 camera

**URL:** <https://community.stereolabs.com/t/passthrough-with-htc-vive-pro-from-zed-2-camera/10361>\
**Category:** Unity\
**Tags:** sdk, unity\
**Created:** [November 19, 2025, 9:28am UTC](https://community.stereolabs.com/t/passthrough-with-htc-vive-pro-from-zed-2-camera/10361 "2025-11-19T09:28:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aramakam0411-hash](https://community.stereolabs.com/user_avatar/community.stereolabs.com/aramakam0411-hash/32/5400_2.png) [@aramakam0411-hash](https://community.stereolabs.com/u/aramakam0411-hash)\
**Post date:** [November 19, 2025, 9:28am UTC](https://community.stereolabs.com/t/passthrough-with-htc-vive-pro-from-zed-2-camera/10361/1 "2025-11-19T09:28:00Z")

</div>

Hi,

We’re a group of students at Østfold University College in Norway doing a project in robotics. The project builds upon previous work done by other groups. We are using the ZED 2 camera, and the HTC Vive Pro 1 set. Everything is connected through Unity, and the version is 2021.3.18. The ZED sdk we’re using is also 4.1 since that’s what were used by the other groups.

When we run the program in Unity we can see what the camera shows through the feed in Unity. Also when we wear the VR headset we can see the output of the camera but it’s just a small windows that shows it which is not comfortable, and the position of it is static as well. we are wondering if it’s possible to achieve passthrough with the ZED 2 camera, and if so, what are we supposed to do in order for that to work. Is there something we have to adjust in the settings? We’ve tried many different things, but nothing seems to work for us.

We will also attach some images of how it looks in Unity and so on, to make it easier for you to understand what we mean. In the image you can see a black square. That’s where we see what the camera shows through the VR headset.

If you need more info, here’s our github repository aswell: [GitHub - Damagedjokke/VR-Project](https://github.com/Damagedjokke/VR-Project)

Thanks in advance,

Aram

 ![setupNotRunning](https://community.stereolabs.com/uploads/default/original/2X/a/aacbbad997c602b07c5b6a7488291ecac44f2706.png)

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [November 19, 2025, 11:40am UTC](https://community.stereolabs.com/t/passthrough-with-htc-vive-pro-from-zed-2-camera/10361/2 "2025-11-19T11:40:29Z")

</div>

Hi @aramakam0411-hash  
I recommend you explore the ZED Unity integration documentation:

> **[Getting Started with Unity and ZED - Stereolabs](https://www.stereolabs.com/docs/unity)**
>
> The ZED SDK Plugin for Unity allows developers to build interactive experiences with a first or third-person view. It provides access to body tracking, stereo video passthrough, depth sensing, …

In particular:

> **[Mixed Reality Capture with Unity - Stereolabs](https://www.stereolabs.com/docs/unity/mixed-reality-capture)**
>
> In this tutorial, you’ll learn how to enable mixed-reality capture with up to four ZED or ZED Mini cameras on a single computer at the same time.

---

<div class="post-metadata">

**Author:** ![aramakam0411-hash](https://community.stereolabs.com/user_avatar/community.stereolabs.com/aramakam0411-hash/32/5400_2.png) [@aramakam0411-hash](https://community.stereolabs.com/u/aramakam0411-hash)\
**Post date:** [November 19, 2025, 12:32pm UTC](https://community.stereolabs.com/t/passthrough-with-htc-vive-pro-from-zed-2-camera/10361/3 "2025-11-19T12:32:48Z")

</div>

Hello, thank you. Will look into it.

If anyone has the same problem. There’s a function in the ZED manager file called ZEDSupportFunctions.hasXRDevice(). We switched that with one we made ourselves called HasXRDeviceImproved().

I will upload an image of the code and paste the code itself aswell:

private bool HasXRDeviceImproved()  
{  
// First try the original method  
bool originalCheck = ZEDSupportFunctions.hasXRDevice();  
if (originalCheck) return true;

```auto
// Fallback checks for when XRDisplaySubsystem.running is false but XR is actually active
bool xrEnabled = XRSettings.enabled;
bool hasXRDevice = !string.IsNullOrEmpty(XRSettings.loadedDeviceName);

// Check if we have XR input subsystems (controllers, trackers)
var xrInputSubsystems = new List<XRInputSubsystem>();
SubsystemManager.GetInstances(xrInputSubsystems);
bool hasInputSubsystems = xrInputSubsystems.Count > 0;

Debug.Log($"HasXRDeviceImproved: original={originalCheck}, enabled={xrEnabled}, device={XRSettings.loadedDeviceName}, inputSubs={xrInputSubsystems.Count}");

// Return true if XR is enabled AND we have a device loaded
return xrEnabled && hasXRDevice;

```

}

 ![j](https://community.stereolabs.com/uploads/default/original/2X/b/bdd9e9ee223427b23c93971ffb165c54b42d8a86.png)
