- Home /
How to access camera preview frames with MediaCapture Class in Unity?
Hello,
I want to access camera preview frames with MediaCapture Class in a Unity application. I know that it is possible in a UWP application like:
create a CaptureElement object in the XAML page:
<CaptureElement x:Name="captureElement" />
and in C# code:
captureElement.Source = mediaCapture;
mediaCapture.StartPreviewAsync();
How can I do mediaCapture.StartPreviewAsync() in Unity since I don't have a XAML page where to create a CaptureElement?
Thank you! :) Sorry for my bad english.
Comment
Your answer
Follow this Question
Related Questions
Rotating player relative to the camera (Unity C#) 1 Answer
Change the FOV from "60" to "90" smoothly when pressing "W" (C#, first time posting, beginner) 2 Answers
Good Game by One Person, Is it Possible? 2 Answers
How to set Body and Aim properties of Cinemachine Virual Camera via script? 1 Answer
Display 1 No Cameras Rendering 2 Answers