# C#

**URL:** https://community.stereolabs.com/c/sw/csharp/9.md?page=1

[Latest](https://community.stereolabs.com/latest.md) · [Categories](https://community.stereolabs.com/categories.md) · [Tags](https://community.stereolabs.com/tags.md)

**Page:** 2

---

## [How do I get an instance of ZED2 camera to access it's properties, within a new csharp script?](https://community.stereolabs.com/t/how-do-i-get-an-instance-of-zed2-camera-to-access-its-properties-within-a-new-csharp-script/3520)

<div class="topic-metadata">

**Author:** [@Rachael](https://community.stereolabs.com/u/Rachael)\
**Replies:** 2\
**Last updated:** [September 20, 2023, 7:26am UTC](https://community.stereolabs.com/t/how-do-i-get-an-instance-of-zed2-camera-to-access-its-properties-within-a-new-csharp-script/3520 "2023-09-20T07:26:42Z")

</div>

how do I get an instance of ZED2 camera to access it’s properties, within a new csharp script?

---

## [ZED Mini: Access To IMU Data](https://community.stereolabs.com/t/zed-mini-access-to-imu-data/3114)

<div class="topic-metadata">

**Author:** [@DaveyDave321](https://community.stereolabs.com/u/DaveyDave321)\
**Replies:** 3\
**Last updated:** [July 20, 2023, 11:35am UTC](https://community.stereolabs.com/t/zed-mini-access-to-imu-data/3114 "2023-07-20T11:35:35Z")

</div>

Hi, I’d like to access angular rate data from our ZED Mini at the highest possible rate within a Unity application. I note that it’s possible to use ‘GetInternalSensorsData()’ to retrieve a range of internal sensor data…

---

## [Zed\_unity raw image issue](https://community.stereolabs.com/t/zed-unity-raw-image-issue/2791)

<div class="topic-metadata">

**Author:** [@gauravkhanduri](https://community.stereolabs.com/u/gauravkhanduri)\
**Replies:** 10\
**Last updated:** [June 13, 2023, 9:50am UTC](https://community.stereolabs.com/t/zed-unity-raw-image-issue/2791 "2023-06-13T09:50:00Z")

</div>

“Below I have pasted my code, the problem is unity is throwing an error that zedmat constructor could not take 4 arguments please help to find the way around.” ZEDMat zedmat = new ZEDMat(1280, 720, ZEDMat.MAT\_TYPE.MAT\_8…

---

## [Body Tracking Sample not working due to cublasLt64\_11.dll reference](https://community.stereolabs.com/t/body-tracking-sample-not-working-due-to-cublaslt64-11-dll-reference/2760)

<div class="topic-metadata">

**Author:** [@rahulnair-github](https://community.stereolabs.com/u/rahulnair-github)\
**Replies:** 2\
**Last updated:** [June 8, 2023, 1:23pm UTC](https://community.stereolabs.com/t/body-tracking-sample-not-working-due-to-cublaslt64-11-dll-reference/2760 "2023-06-08T13:23:42Z")

</div>

Hi, I am trying to run the body tacking c# sample , with Zed SDK 4.0.3 and CUDA 12.1 on my machine. This sample stops at optimizing the skeletal structure Optimizing skeleton\_body38\_3.5 \\ 0.3%\[\> …

---

## [Unable to make a tutorial run](https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849)

<div class="topic-metadata">

**Author:** [@macsrl](https://community.stereolabs.com/u/macsrl)\
**Replies:** 12\
**Last updated:** [June 7, 2023, 10:37am UTC](https://community.stereolabs.com/t/unable-to-make-a-tutorial-run/849 "2023-06-07T10:37:53Z")

</div>

hi! iam trying to make a tutorial run, but i got some errors. i followed the instructions provided here: https://www.stereolabs.com/docs/app-development/csharp/use/ i succeded in all the steps, but whem i make the co…

---

## [ZED 2 and Mixed Reality Plugin](https://community.stereolabs.com/t/zed-2-and-mixed-reality-plugin/2376)

<div class="topic-metadata">

**Author:** [@rgmchugh](https://community.stereolabs.com/u/rgmchugh)\
**Replies:** 1\
**Last updated:** [April 3, 2023, 2:32pm UTC](https://community.stereolabs.com/t/zed-2-and-mixed-reality-plugin/2376 "2023-04-03T14:32:32Z")

</div>

I am trying to develop a custom program that allows the use of Microsoft’s HoloLens 2 and the ZED 2i’s object detection in Unity. I was able to get the sample project for object detection to work with the ZED 2i by itse…

---

## [Any interest in making the c# api work in a newer version like .NET 8.0](https://community.stereolabs.com/t/any-interest-in-making-the-c-api-work-in-a-newer-version-like-net-8-0/2345)

<div class="topic-metadata">

**Author:** [@cole6437](https://community.stereolabs.com/u/cole6437)\
**Replies:** 1\
**Last updated:** [March 28, 2023, 11:05pm UTC](https://community.stereolabs.com/t/any-interest-in-making-the-c-api-work-in-a-newer-version-like-net-8-0/2345 "2023-03-28T23:05:05Z")

</div>

I am trying to use the latest Yolov8 model in unity with Zed and find that I need .NET 8.0 support to get the latest ML libraries for this to work, but the c# sdk is on .net 4.8. Is there any interest in making the c# ap…

---

## [Unity & OPENCV plugin](https://community.stereolabs.com/t/unity-opencv-plugin/1504)

<div class="topic-metadata">

**Author:** [@Maracazion](https://community.stereolabs.com/u/Maracazion)\
**Replies:** 3\
**Last updated:** [March 17, 2023, 8:57am UTC](https://community.stereolabs.com/t/unity-opencv-plugin/1504 "2023-03-17T08:57:21Z")

</div>

Does anyone has any (positive ) experience combining Unity, ZED and the OPENCV for Unity plugin published by Enox Software? Can’t get it to work. Keep getting a CS1501 NO overload for method ‘detectMarkers’ takes 7 argum…

---

## [Making a cutout of a person in scene view](https://community.stereolabs.com/t/making-a-cutout-of-a-person-in-scene-view/2063)

<div class="topic-metadata">

**Author:** [@Abneto](https://community.stereolabs.com/u/Abneto)\
**Replies:** 1\
**Last updated:** [January 30, 2023, 7:32pm UTC](https://community.stereolabs.com/t/making-a-cutout-of-a-person-in-scene-view/2063 "2023-01-30T19:32:50Z")

</div>

Hello, I’ve been looking for a way to be able to insert a depth capture of the ZED2 into the scene in Unity, similar to the green screen example in the docs, but only on an area that a person is detected (due to lack of…

---

## [zedMat to Unity Render Texture](https://community.stereolabs.com/t/zedmat-to-unity-render-texture/2048)

<div class="topic-metadata">

**Author:** [@hyunas1996](https://community.stereolabs.com/u/hyunas1996)\
**Replies:** 3\
**Last updated:** [January 26, 2023, 10:21am UTC](https://community.stereolabs.com/t/zedmat-to-unity-render-texture/2048 "2023-01-26T10:21:28Z")

</div>

Hi I’d like to convert zedMat to Unity Render Texture type Is there a tutorial for this? Thank you in advance

---

## [SetRegionOfInterest function in Unity](https://community.stereolabs.com/t/setregionofinterest-function-in-unity/1933)

<div class="topic-metadata">

**Author:** [@Ippei-Kato](https://community.stereolabs.com/u/Ippei-Kato)\
**Replies:** 4\
**Last updated:** [December 26, 2022, 8:19am UTC](https://community.stereolabs.com/t/setregionofinterest-function-in-unity/1933 "2022-12-26T08:19:17Z")

</div>

I am using Camera::setRegionOfInterest in Unity, which was added in ZED SDK 3.8.0. One black and white image is attached. There is a mesh-like frame on the screen. In order to get the frame to be removed from this scr…

---

## [Camera Rig Setting](https://community.stereolabs.com/t/camera-rig-setting/1879)

<div class="topic-metadata">

**Author:** [@hyunas1996](https://community.stereolabs.com/u/hyunas1996)\
**Replies:** 2\
**Last updated:** [December 15, 2022, 2:47am UTC](https://community.stereolabs.com/t/camera-rig-setting/1879 "2022-12-15T02:47:21Z")

</div>

Hi, I’m currently implementing a Unity app with HTC Vive pro2 and Zed mini. In this app, I want to show the zed mini frame only at a specific moment. (e.g., In the initial stage, just show the virtual scene, but after…

---

## [Render frames on the same scale as real world](https://community.stereolabs.com/t/render-frames-on-the-same-scale-as-real-world/1872)

<div class="topic-metadata">

**Author:** [@hyunas1996](https://community.stereolabs.com/u/hyunas1996)\
**Replies:** 0\
**Last updated:** [December 5, 2022, 7:34am UTC](https://community.stereolabs.com/t/render-frames-on-the-same-scale-as-real-world/1872 "2022-12-05T07:34:24Z")

</div>

Hi I’m implementing an Unity app with HTC Vive pro2 and zed mini. I’d like to render the camera frame in the same scale & distance as real world. To match it, how can I do? Thank you in advance.

---

## [Save ply with normals](https://community.stereolabs.com/t/save-ply-with-normals/1809)

<div class="topic-metadata">

**Author:** [@mcculleyc](https://community.stereolabs.com/u/mcculleyc)\
**Replies:** 1\
**Last updated:** [November 21, 2022, 8:37am UTC](https://community.stereolabs.com/t/save-ply-with-normals/1809 "2022-11-21T08:37:34Z")

</div>

Is there a simple way to save a PLY with X,Y,Z AND NORMALS? My goal is to grab an image and save the one image with X,Y,Z and normals. Currently I am having to re-create the normals in my application and its very time …

---

## [\[ZED Mini\]\[Unity\] How to toggle depth occlusion at runtime?](https://community.stereolabs.com/t/zed-mini-unity-how-to-toggle-depth-occlusion-at-runtime/1670)

<div class="topic-metadata">

**Author:** [@FeldNico](https://community.stereolabs.com/u/FeldNico)\
**Replies:** 1\
**Last updated:** [October 18, 2022, 9:48am UTC](https://community.stereolabs.com/t/zed-mini-unity-how-to-toggle-depth-occlusion-at-runtime/1670 "2022-10-18T09:48:19Z")

</div>

Hi, I’m currently working on a project where the user can switch between AR and VR. Therefore, I would like to toggle the depth occlusion at runtime. If I click on the “Depth Occlusion” in the inspector while the applic…

---

## [Transforming detected object coordinate system](https://community.stereolabs.com/t/transforming-detected-object-coordinate-system/1622)

<div class="topic-metadata">

**Author:** [@alwdd](https://community.stereolabs.com/u/alwdd)\
**Replies:** 2\
**Last updated:** [September 30, 2022, 1:48am UTC](https://community.stereolabs.com/t/transforming-detected-object-coordinate-system/1622 "2022-09-30T01:48:32Z")

</div>

I am doing interactive walls. My project has a fixed 1280 pixel : 3 meters at a 100 pixel per unit scale, so 12.8 Unity units is projected to 3 meters of wall. I am using the ZED2 for object detection so as to add some …

---

## [Unity crash using body tracking example](https://community.stereolabs.com/t/unity-crash-using-body-tracking-example/1509)

<div class="topic-metadata">

**Author:** [@Tonieh](https://community.stereolabs.com/u/Tonieh)\
**Replies:** 3\
**Last updated:** [August 22, 2022, 5:12pm UTC](https://community.stereolabs.com/t/unity-crash-using-body-tracking-example/1509 "2022-08-22T17:12:02Z")

</div>

Hi, When I run the body tracking example Unity crashes after some seconds. Also when I create a new scene, place the ZED\_Rig\_Mono prefab, change settings for body track, run and then press “start object detection” it fre…

---

## [Skeleton Tracking Unity - Rendering Plane View Mode does not change](https://community.stereolabs.com/t/skeleton-tracking-unity-rendering-plane-view-mode-does-not-change/1423)

<div class="topic-metadata">

**Author:** [@Gorkem](https://community.stereolabs.com/u/Gorkem)\
**Replies:** 4\
**Last updated:** [July 29, 2022, 4:11pm UTC](https://community.stereolabs.com/t/skeleton-tracking-unity-rendering-plane-view-mode-does-not-change/1423 "2022-07-29T16:11:55Z")

</div>

Hello, Right now I work on a project for skeleton tracking in Unity. Demo works pretty well, except that I am unable to change view mode of Frame object via Rendering Plane properties. Canvas only shows depth map no mat…

---

## [ZED Camera shows black in Unity scene and editor](https://community.stereolabs.com/t/zed-camera-shows-black-in-unity-scene-and-editor/1414)

<div class="topic-metadata">

**Author:** [@Seye4](https://community.stereolabs.com/u/Seye4)\
**Replies:** 1\
**Last updated:** [July 28, 2022, 10:12pm UTC](https://community.stereolabs.com/t/zed-camera-shows-black-in-unity-scene-and-editor/1414 "2022-07-28T22:12:13Z")

</div>

The zed camera in all my unity scene is rendering black, I also tried it with the sample assets. It is the same thing, please help By the way am using the latest ZED sdk and unity plugin

---

## [Skeleton get stuck with particular gesture (swiping)](https://community.stereolabs.com/t/skeleton-get-stuck-with-particular-gesture-swiping/1347)

<div class="topic-metadata">

**Author:** [@lunanane](https://community.stereolabs.com/u/lunanane)\
**Replies:** 1\
**Last updated:** [July 14, 2022, 9:20am UTC](https://community.stereolabs.com/t/skeleton-get-stuck-with-particular-gesture-swiping/1347 "2022-07-14T09:20:21Z")

</div>

Hi, We have been working on a implementation of Stereolabs C# API into our production tool VVVV gamma. It works so far quite well, i do get for example pointcloud, skeleton and other tracking data. Now in our particu…

---

## [Offseting avatar positions from multiple cameras - Livelink/Unreal](https://community.stereolabs.com/t/offseting-avatar-positions-from-multiple-cameras-livelink-unreal/1343)

<div class="topic-metadata">

**Author:** [@Hedgehog](https://community.stereolabs.com/u/Hedgehog)\
**Replies:** 1\
**Last updated:** [July 14, 2022, 8:31am UTC](https://community.stereolabs.com/t/offseting-avatar-positions-from-multiple-cameras-livelink-unreal/1343 "2022-07-14T08:31:12Z")

</div>

Hi there, Is there a way to offset avatar positions when working with multiple ZEDs. Example is having two livelinks feeding skeletal data into one UE application. Curently all detected avatars from both ZEDs overlap in…

---

## [How is the drift corrector implemented in ZED Unity SDK](https://community.stereolabs.com/t/how-is-the-drift-corrector-implemented-in-zed-unity-sdk/1133)

<div class="topic-metadata">

**Author:** [@keli95566](https://community.stereolabs.com/u/keli95566)\
**Replies:** 5\
**Last updated:** [May 12, 2022, 9:49am UTC](https://community.stereolabs.com/t/how-is-the-drift-corrector-implemented-in-zed-unity-sdk/1133 "2022-05-12T09:49:11Z")

</div>

Hi there! I am currently trying to implement a similar asynchronous time warp effect to compensate for camera streaming latency. And found the “ZEDMixedRealityPlugin” in the ZED Unity SDK. I am wondering how is the drift…

---

## [C++ Objects to Unity](https://community.stereolabs.com/t/c-objects-to-unity/896)

<div class="topic-metadata">

**Author:** [@mintos002](https://community.stereolabs.com/u/mintos002)\
**Replies:** 4\
**Last updated:** [March 4, 2022, 8:10am UTC](https://community.stereolabs.com/t/c-objects-to-unity/896 "2022-03-04T08:10:58Z")

</div>

My problem is that I generate a JSON file with all the sl::Objects for body tracking using 4 different cameras. Then I need to read the file in Unity and somehow move the avatar accordingly. Any idea how to do the Unity…

---

## [ZED Unity Plugin 3.7](https://community.stereolabs.com/t/zed-unity-plugin-3-7/901)

<div class="topic-metadata">

**Author:** [@IshanBhatnagar14](https://community.stereolabs.com/u/IshanBhatnagar14)\
**Replies:** 1\
**Last updated:** [February 28, 2022, 12:12pm UTC](https://community.stereolabs.com/t/zed-unity-plugin-3-7/901 "2022-02-28T12:12:10Z")

</div>

Hi Guys , the package file for Zed Unity Plugin 3.7 is missing , you guys have only included the source.

---

## [Is there any way to record video in avi file directly?](https://community.stereolabs.com/t/is-there-any-way-to-record-video-in-avi-file-directly/858)

<div class="topic-metadata">

**Author:** [@juniniho](https://community.stereolabs.com/u/juniniho)\
**Replies:** 1\
**Last updated:** [February 10, 2022, 10:58am UTC](https://community.stereolabs.com/t/is-there-any-way-to-record-video-in-avi-file-directly/858 "2022-02-10T10:58:52Z")

</div>

I found only svo output type in recording api, but my app only need video file which can play in web page. Export the svo to avi will waste more time, is there any way to output avi by recording api?

---

## [Unity - Is it possible to use GreenScreen on a Stereo Rig?](https://community.stereolabs.com/t/unity-is-it-possible-to-use-greenscreen-on-a-stereo-rig/758)

<div class="topic-metadata">

**Author:** [@Gnoknop](https://community.stereolabs.com/u/Gnoknop)\
**Replies:** 1\
**Last updated:** [December 23, 2021, 9:07am UTC](https://community.stereolabs.com/t/unity-is-it-possible-to-use-greenscreen-on-a-stereo-rig/758 "2021-12-23T09:07:17Z")

</div>

Hello there, I’d like to use the GreenScreen Component with the HMD HTC Vive ( Both Eyes ), using unity. GreenScreen Prefab works as a Mono Rig. Trying to extend it to a stereo rig results in many errors. Here is an e…

---

## [Construct 3D World outside of AR Frame | Unity, ZED mini](https://community.stereolabs.com/t/construct-3d-world-outside-of-ar-frame-unity-zed-mini/550)

<div class="topic-metadata">

**Author:** [@WASD](https://community.stereolabs.com/u/WASD)\
**Replies:** 0\
**Last updated:** [October 8, 2021, 12:31pm UTC](https://community.stereolabs.com/t/construct-3d-world-outside-of-ar-frame-unity-zed-mini/550 "2021-10-08T12:31:52Z")

</div>

Hey all! I have a question regarding the AR Passthrough with ZED mini and Rift in unity. I would like to construct a 3D world around the passthrough frame in unity and be able to move objects in and out of the augmented…

---

## [Minimal Unity-ZED SDK version](https://community.stereolabs.com/t/minimal-unity-zed-sdk-version/519)

<div class="topic-metadata">

**Author:** [@keli95566](https://community.stereolabs.com/u/keli95566)\
**Replies:** 0\
**Last updated:** [September 28, 2021, 4:12pm UTC](https://community.stereolabs.com/t/minimal-unity-zed-sdk-version/519 "2021-09-28T16:12:37Z")

</div>

Hi there, I am wondering if anyone knows how to create a minimal version of the Unity ZED SDK? I would like to deploy a standalone app to oculus Quest2 via Android SDK. I don’t need anything fancy, just streaming the st…

---

## [Tracking in Unity with ZEDMini](https://community.stereolabs.com/t/tracking-in-unity-with-zedmini/490)

<div class="topic-metadata">

**Author:** [@233](https://community.stereolabs.com/u/233)\
**Replies:** 1\
**Last updated:** [September 27, 2021, 9:03am UTC](https://community.stereolabs.com/t/tracking-in-unity-with-zedmini/490 "2021-09-27T09:03:09Z")

</div>

Hello， My English is not good. I hope you can understand my problem. I used the “Spatial Mapping” of the “ZED\_Rig\_Stereo” prefab in “zed plugin for unity” to scan the scene and get the area file. After entering the fil…

---

## [Background removal without green screen](https://community.stereolabs.com/t/background-removal-without-green-screen/484)

<div class="topic-metadata">

**Author:** [@epicoro](https://community.stereolabs.com/u/epicoro)\
**Replies:** 0\
**Last updated:** [September 16, 2021, 2:38pm UTC](https://community.stereolabs.com/t/background-removal-without-green-screen/484 "2021-09-16T14:38:18Z")

</div>

Hey, I would like to remove a background behind a person without a green screen. I tried changing the max depth range but I am not getting a good resoults. Is it possible to do tha? Can you please point me into the righ…

[Previous page](https://community.stereolabs.com/c/sw/csharp/9.md)

[Next page](https://community.stereolabs.com/c/sw/csharp/9.md?page=2)
