# Unity : Rendering YUV 4k Camera Stream

**URL:** https://forum.magicleap.cloud/t/unity-rendering-yuv-4k-camera-stream/5612
**Category:** Unity Development
**Tags:** camera-api, performance, official, camera
**Created:** [April 27, 2025, 5:20pm UTC](https://forum.magicleap.cloud/t/unity-rendering-yuv-4k-camera-stream/5612 "2025-04-27T17:20:10Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)
#### Post date: [April 27, 2025, 5:42pm UTC](https://forum.magicleap.cloud/t/unity-rendering-yuv-4k-camera-stream/5612/2 "2025-04-27T17:42:14Z")

</div>

Here is a **managed version** of the visualizer that does not require enabling the `unsafe` flag in the project settings. Note the scripts are named the same so only one can be in your project at a time unless you rename the script and it’s reference in the AsyncCameraCapture script.

> ****
>
> [YUVCameraVisualizer.cs](https://forum.magicleap.cloud/uploads/short-url/khcvjzN5VXZT2NWIOSN9SJoXwq1.cs) (6.4 KB)

---

_[View the full topic](https://forum.magicleap.cloud/t/unity-rendering-yuv-4k-camera-stream/5612)._
