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

**URL:** <https://community.stereolabs.com/t/how-do-i-get-an-instance-of-zed2-camera-to-access-its-properties-within-a-new-csharp-script/3520>\
**Category:** C#\
**Tags:** unity\
**Created:** [September 19, 2023, 2:53pm 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-19T14:53:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rachael](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/r/c57346/32.png) [@Rachael](https://community.stereolabs.com/u/Rachael)\
**Post date:** [September 19, 2023, 2:53pm 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/1 "2023-09-19T14:53:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![JPlou](https://community.stereolabs.com/user_avatar/community.stereolabs.com/jplou/32/1012_2.png) [@JPlou](https://community.stereolabs.com/u/JPlou)\
**Post date:** [September 19, 2023, 3:00pm 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/2 "2023-09-19T15:00:42Z")

</div>

Hi @Rachael  
You can access a specific ZEDManager from pretty much any script using [ZEDManager.GetInstance()](https://github.com/stereolabs/zed-unity/blob/264d44b8be9c7205184982a9fa169c9be5695638/ZEDCamera/Assets/ZED/SDK/Helpers/Scripts/ZEDManager.cs#L27).  
From there you can navigate the properties of the camera as you need.

---

<div class="post-metadata">

**Author:** ![Rachael](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/r/c57346/32.png) [@Rachael](https://community.stereolabs.com/u/Rachael)\
**Post date:** [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/3 "2023-09-20T07:26:42Z")

</div>

Our project is a unity project, that uses assembly definitions 😃

I had to add an assembly definition to your ZED package, and then add that assembly definition to our projects assembly reference… it works now.  
Thanks,
