# Using ZED SDK with latest Unity/VisualStudio

**URL:** <https://community.stereolabs.com/t/using-zed-sdk-with-latest-unity-visualstudio/169>\
**Category:** C#\
**Created:** [March 25, 2021, 7:40pm UTC](https://community.stereolabs.com/t/using-zed-sdk-with-latest-unity-visualstudio/169 "2021-03-25T19:40:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeffNik](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/j/e47c2d/32.png) [@JeffNik](https://community.stereolabs.com/u/JeffNik)\
**Post date:** [March 25, 2021, 7:40pm UTC](https://community.stereolabs.com/t/using-zed-sdk-with-latest-unity-visualstudio/169/1 "2021-03-25T19:40:29Z")

</div>

I used the Zed SDK with my Zed Mini a few years ago, and had only a few little issues, but got it working. Now, I’m now trying to use the Zed Unity Package with the latest Unity version, and encountering numerous issues getting it to work with the new XR Plugin system. So I thought I’d use the latest Visual Studio to make my own C# wrapper … nope! Used Cmake to build the samples / helloZed projects, and they wont compile or run correctly. Something about the DLL supplied is release, and wont work with my project in debug mode (but I need the debug mode to test and learn).

I’m out of ideas and just about ready to box up my Zed and shove it in the closet again. ☹ Can anyone provide a VS2019 project that produces both a sl\_zed64.dll and sl\_zed64d.dll? Or perhaps a Unity package that works with Unity 2020? Y’know — 'cause its 2021 now? 😉

---

<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:** [March 26, 2021, 9:15am UTC](https://community.stereolabs.com/t/using-zed-sdk-with-latest-unity-visualstudio/169/2 "2021-03-26T09:15:05Z")

</div>

Hi,

As you said, for the moment the Unity plugin is only available with the old input system which is depreciated since Unity 2020. It is planned to update the plugin for a future release, in the mean time, please use a 2019 version like 2019.4 which is LTS.

Indeed, it is not possible to build the samples in Debug mode, use RelWithDebInfo instead.

I apologize for the inconvenience,

Best regards,  
Benjamin Vallon

---

<div class="post-metadata">

**Author:** ![JeffNik](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/j/e47c2d/32.png) [@JeffNik](https://community.stereolabs.com/u/JeffNik)\
**Post date:** [March 27, 2021, 4:31am UTC](https://community.stereolabs.com/t/using-zed-sdk-with-latest-unity-visualstudio/169/3 "2021-03-27T04:31:21Z")

</div>

Well, I’m relieved to see that an update is planned, and that you are responsive to your community. I’ll do as you suggest, and play around with the older Unity version until a newer package is available. Thanks for your reply. 👍

---

<div class="post-metadata">

**Author:** ![Miguel\_A\_Silvestre](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/f9ae1b/32.png) [@Miguel\_A\_Silvestre](https://community.stereolabs.com/u/Miguel_A_Silvestre)\
**Post date:** [April 8, 2021, 12:25pm UTC](https://community.stereolabs.com/t/using-zed-sdk-with-latest-unity-visualstudio/169/4 "2021-04-08T12:25:21Z")

</div>

Hi all,

These are great news, I hope to use the new XR sistem with ZED mini in my projects.

Thanks. 👍

---

<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:** [May 4, 2021, 8:31am UTC](https://community.stereolabs.com/t/using-zed-sdk-with-latest-unity-visualstudio/169/5 "2021-05-04T08:31:49Z")

</div>

Hi,

There is a new version of the Unity plugin available here : [GitHub - stereolabs/zed-unity at xr\_compatibility\_3.5](https://github.com/stereolabs/zed-unity/tree/xr_compatibility_3.5) that is compatible with the new versions of Unity and the XR Management plugin.

Do not hesitate to try it out and give us your feedbacks.

Benjamin Vallon
