# Recording SVO files in Unity during runtime with button press

**URL:** <https://community.stereolabs.com/t/recording-svo-files-in-unity-during-runtime-with-button-press/5738>\
**Category:** Unity\
**Tags:** svo, unity\
**Created:** [May 1, 2024, 6:57pm UTC](https://community.stereolabs.com/t/recording-svo-files-in-unity-during-runtime-with-button-press/5738 "2024-05-01T18:57:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bregermann](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/b/97f17d/32.png) [@bregermann](https://community.stereolabs.com/u/bregermann)\
**Post date:** [May 1, 2024, 6:57pm UTC](https://community.stereolabs.com/t/recording-svo-files-in-unity-during-runtime-with-button-press/5738/1 "2024-05-01T18:57:25Z")

</div>

Me again:  
I am attempting to record SVO files in runtime on a button press, I notice there is no function which can be accessed in the OnClick menu which explicitly handles this. There are functions in there for Body Tracking, Spatial Mapping and Object Detection but there doesn’t appear to be one for Recording an SVO

 ![image](https://community.stereolabs.com/uploads/default/original/2X/c/ca3849ab15dc021a8f744267594ab0f226ce7060.png)

My question is: how do I start and stop recording SVO files with a button press in Unity for use in a standalone build.

Thank you all so much  
-Jeremy

---

<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:** [May 2, 2024, 4:21pm UTC](https://community.stereolabs.com/t/recording-svo-files-in-unity-during-runtime-with-button-press/5738/2 "2024-05-02T16:21:07Z")

</div>

Hello Jeremy,

You can refer to these lines to create a “ToggleRecording” method: [ZEDCameraEditor](https://github.com/stereolabs/zed-unity/blob/fe6aac5a805f848882c7901dd0f6864a6a097a36/ZEDCamera/Assets/ZED/Editor/Scripts/ZEDCameraEditor.cs#L1095-L1117)

Unfortunately, we haven’t exposed this function more than what these lines describe. They are the inner workings of the “Start Recording” button in the ZED Manager inspector panel.

I hope this helps!
