How to access Camera Feed (iOS and Android)

Hi all,

In the new Unity 3.5 release notes it is said that Unity added the Camera support, however I can’t find any documentation explaining how to access the camera video feed for iOS and Android.

I would like to use the video feed as a background.

I’ve seen some related post but not a real documentation. Did I miss something?

var deviceName = WebCamTexture.devices[0].name;

var webCamTexture = new WebCamTexture(deviceName, 1280, 720, 30);

webCamTexture.Play();


renderer.material.mainTexture = webCamTexture;