Unity - Scripting API: WebCamTexture.deviceName
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
public string deviceName;
Description
Set this to specify the name of the device to use.
This only has an effect when set while the camera is not running.
Note: If you want to use WebCamTexture to get the camera stream from a device connected through Unity Remote, you must initialize it through the constructor. It's not possible to change the device using WebCamTexture.deviceName from regular to remote devices and vice versa.