Created
February 15, 2020 22:34
-
-
Save olokobayusuf/ba528cb80ade17d61b97f7c95ca80eb8 to your computer and use it in GitHub Desktop.
Streaming the camera preview from a camera device in NatDevice.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async void StartPreview () { | |
// Start the camera preview | |
ICameraDevice device = ...; | |
Texture2D previewTexture = await device.StartRunning(); | |
// Display the preview texture on a UI panel | |
rawImage.texture = previewTexture; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment