# Major issues with Unity samples — ZED SDK 5.0: need a clear status update

**URL:** <https://community.stereolabs.com/t/major-issues-with-unity-samples-zed-sdk-5-0-need-a-clear-status-update/9266>\
**Category:** Unity\
**Tags:** sdk, unity\
**Created:** [July 4, 2025, 10:37am UTC](https://community.stereolabs.com/t/major-issues-with-unity-samples-zed-sdk-5-0-need-a-clear-status-update/9266 "2025-07-04T10:37:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@Jeff](https://community.stereolabs.com/u/Jeff)\
**Post date:** [July 4, 2025, 10:37am UTC](https://community.stereolabs.com/t/major-issues-with-unity-samples-zed-sdk-5-0-need-a-clear-status-update/9266/1 "2025-07-04T10:37:20Z")

</div>

Hello [Stereolabs](https://www.stereolabs.com/) team,

I’m opening this topic to highlight several **blocking issues** I’ve encountered while testing the **latest ZED SDK 5.0** and **ZED Unity Plugin 5.0.1** , whether using the official GitHub repo or by importing the package into a fresh Unity project.

**Test Environment**

- **Unity** : 2022.3.29 (LTS) and 6000.0.33
- **ZED SDK** : 5.0
- **Unity ZED SDK** : 5.0.1 — [GitHub link](https://github.com/stereolabs/zed-unity/releases/)
- **Tested scenes** : _Assembly Definition_, _BodyTracking_, _ObjectDetection_, _ObjectPlacement_, _PointCloud_ (official samples)

### **Issues Encountered**

**BodyTracking**

- **Scene: `BodyTrackingMulti/BodyTrackingSingle`** → Depth occlusion problem (already reported in another [topic](https://community.stereolabs.com/t/depth-inversion-problem-in-zed-texture-renderer-bodytracking-unity-2022-3-29-zed-sdk-5-01/9185)).
- **Advanced: Mask Bodytracking**
  - `ZEDCommon` uses `System.IntPtr mask`
  - `DetectBody.CS`: `ZEDMatToTexture_CPU()` + `Marshal.Copy(maskpointer, texbytes, 0, texbytes.Length)` returns no usable data.
  - No GPU equivalent → it’s impossible to use the mask data effectively.

**PointCloud**

- No visible point cloud rendering in the `[PointCloud](https://www.stereolabs.com/docs/unity/samples#point-cloud)` sample.
- `ZEDPointCloudManager.cs` has all its references correctly assigned (`Camera`, `ZedManager`, `Material`).
- Position can logs → but **nothing is rendered** , in either the **Built-in** or **URP** pipeline.  
\*When I use `ZEDFusedPointCloudRenderer.cs` to display something, the rendering is **way too slow** for interactive use (an issue you’ve already acknowledged but it remains unresolved).

**Object Detection**

- Unity editor **always crashes** when entering `Play Mode` with the `MULTI_CLASS_BOX_ACCURATE` model.
- Switching to `MULTI_CLASS_BOX_MEDIUM` allows `Play Mode` to run, but:
  - Detections are almost non-existent.
  - `Enable Segmentation` turned on → still no visible output.

The scripts themselves are nicely commented, but there is **no clear guidance** for setting up these scenes properly.

The official documentation ([link](https://www.stereolabs.com/docs/unity)) is still too superficial to solve these blocking points.

### **What I’d like to know**

- Are these samples **supposed to work out of the box**?
- If yes → could you please share **step-by-step instructions** to ensure correct rendering (point cloud, object detection)?
- If not → what is the **recommended setup** to get a stable and usable result today (suggested render pipeline, Unity version, earlier SDK version, upcoming hotfix, etc.)?

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [July 8, 2025, 2:16pm UTC](https://community.stereolabs.com/t/major-issues-with-unity-samples-zed-sdk-5-0-need-a-clear-status-update/9266/2 "2025-07-08T14:16:38Z")

</div>

Hi,

I’ll handle the occlusion question in the other post.

1. How did you test it ? When I display the mask in the 2D OD scene using body tracking, it works fine (You can change the detection mode on the 2D Object Visualizer script).
2. The mask can only be retrieved on CPU from the ZED SDK.

**PointCloud**  
3. I have no issues with Unity 6, do you have any logs in the console by any chance?

**Object Detection**

1. Can you try to use it outside of unity, with a cpp or python sample, please?

---

<div class="post-metadata">

**Author:** ![Hanif](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/h/ba9def/32.png) [@Hanif](https://community.stereolabs.com/u/Hanif)\
**Post date:** [August 21, 2026, 2:46pm UTC](https://community.stereolabs.com/t/major-issues-with-unity-samples-zed-sdk-5-0-need-a-clear-status-update/9266/3 "2026-08-21T14:46:13Z")

</div>

Hi folks  
I have same issue with point cloud sample :  
what I have in log is : In the render graph API, the output Render Texture must have a depth buffer. When you select a Render Texture in any camera’s Output Texture property, the Depth Stencil Format property of the texture must be set to a value other than None.  
I removed ZEDView from output texture in Virtual view camera and inside ZEDView changed Depth Stencil Format to D24\_UNORM\_S8\_UINT the the log disappeared but in game view there is nothing rendered ! Any idea how can I fix the issue ? Thanks

---

<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:** [September 3, 2026, 7:55am UTC](https://community.stereolabs.com/t/major-issues-with-unity-samples-zed-sdk-5-0-need-a-clear-status-update/9266/4 "2026-09-03T07:55:10Z")

</div>

Hi @Hanif,  
Welcome to the [StereoLabs](https://www.stereolabs.com/) community

> [@Hanif](#):
>
> I have same issue with point cloud sample :  
> what I have in log is : In the render graph API, the output Render Texture must have a depth buffer.

That message comes from Unity’s Render Graph, not from the ZED plugin. Starting with Unity 6, any camera that renders into a Render Texture requires that texture to expose a depth/stencil buffer, while the `ZEDView` asset shipped with the samples was authored before this requirement existed.

> [@Hanif](#):
>
> I removed ZEDView from output texture in Virtual view camera and inside ZEDView changed Depth Stencil Format to D24\_UNORM\_S8\_UINT the the log disappeared but in game view there is nothing rendered !

The warning went away because of the first change, not the second one. With no Output Texture assigned, the Virtual View camera stops writing into `ZEDView`, so the UI element that displays that texture has nothing to show. Please restore the original wiring and keep only the format change:

1. Set `ZEDView` → Depth Stencil Format = `D24_UNORM_S8_UINT`; this is the actual fix for the log message.
2. Re-assign `ZEDView` to the Output Texture field of the Virtual View camera.

If the point cloud is still not visible after that, these are the points I would check, in this order:

1. On the `ZEDPointCloudManager` component, verify that `Display` is enabled and that the camera referenced in the “hide from camera” field is the one you do _not_ want the cloud in; the script skips the draw call when the rendering camera matches that reference.
2. Render pipeline. The cloud is drawn from `OnRenderObject()` via `Graphics.DrawProceduralNow()`, and the per-camera filtering relies on `Camera.current`; both are Built-in Render Pipeline idioms and behave differently under URP with Render Graph active. As a quick discriminating test, go to Edit → Project Settings → Graphics, Render Graph section, and enable Compatibility Mode (Render Graph disabled), then replay the scene. If the cloud appears, the issue is confined to the Render Graph path and not to the depth retrieval.
3. Materials. In a URP project the plugin materials must be converted (Window → Rendering → Render Pipeline Converter), and where a `*_URP` variant of the point cloud material exists it should be assigned explicitly, as described in the setup guide.

To reproduce this on our side, could you please confirm the exact Unity version, the render pipeline in use (Built-in, URP or HDRP), and the ZED SDK and Unity plugin versions? The result of the Compatibility Mode test at point 4 is the most useful information; if it changes the behaviour, please also open a ticket on the plugin repository at [Issues · stereolabs/zed-unity · GitHub](https://github.com/stereolabs/zed-unity/issues) with those details, so the Render Graph compatibility work can be tracked there.

Useful references:

- Plugin setup, including the URP and HDRP conversion steps: [Getting Started with Unity and ZED | StereoLabs](https://www.stereolabs.com/docs/integrations/unity)
- Sample scenes overview: [Sample Scenes | StereoLabs](https://www.stereolabs.com/docs/integrations/unity/sample-scenes)
- Key scripts and parameters: [Key Concepts & Scripts | StereoLabs](https://www.stereolabs.com/docs/integrations/unity/key-concepts)
- Latest ZED SDK: [ZED SDK 5.4 - Download | Stereolabs](https://www.stereolabs.com/developers/release/)
