From 2bd1cf7285fd33b00e060cff759686d46561252c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sierpi=C5=84ski?= <33436839+sierpinskid@users.noreply.github.com> Date: Mon, 27 Nov 2023 19:19:42 +0100 Subject: [PATCH] [Docs] Remove forcing resolution for the `WebCamTexture` - for Android only the 16x16 multiple will work (webRTC limitation) so it's better to either use the default one or set it accordingly to a target platform --- .../docs/Unity/03-guides/04-camera-and-microphone.mdx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docusaurus/docs/Unity/03-guides/04-camera-and-microphone.mdx b/docusaurus/docs/Unity/03-guides/04-camera-and-microphone.mdx index 588ecd4a..2fae3887 100644 --- a/docusaurus/docs/Unity/03-guides/04-camera-and-microphone.mdx +++ b/docusaurus/docs/Unity/03-guides/04-camera-and-microphone.mdx @@ -62,12 +62,8 @@ They way you start streaming video from a camera device is by creating a `WebCam // Obtain a camera device var cameraDevice = WebCamTexture.devices.First(); -var width = 1920; -var height = 1080; -var fps = 30; - // Use device name to create a new WebCamTexture instance -var activeCamera = new WebCamTexture(cameraDevice.name, width, height, fps); +var activeCamera = new WebCamTexture(cameraDevice.name); // Call Play() in order to start capturing the video activeCamera.Play();