Hello, Welcome to Microsoft Q&A,
You can use the WinRT API to capture frame data, convert it to a Unity-compatible format, and then apply it to a Texture2D.
Alternatively, you can also implement camera preview function using PhotoCaptureFrame or WebCamTexture provided by Unity, without using the WinRT API.
If you use the WinRT API with Unity for HoloLens, ensure that the preprocessor directive ENABLE_WINMD_SUPPORT is wrapped around any WinRT-leveraged code. Note that this directive won't work in Unity Play mode. For more details, see - WinRT APIs with Unity for HoloLens - Mixed Reality | Microsoft Learn.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.