DeviceCameraWebGL

This plugin allows you to access the device’s camera and stream its contents into a render texture (or Texture2D if you want to). It works on Chrome, Safari, Firefox, Opera, Edge, with no issues.


It's a lot faster than Unity's regular webcam as well. The video shows that Unity's webcam averages 10 fps on my old Samsung S8, whereas my plugin averages on 60 fps.


You can access the front camera, the rear camera, you can check which cameras the device has to begin with. You can start, stop, update the render texture, check if the camera is active, check if you are on desktop. You can also configure the webcam resolution.


This plugin can also capture the camera feed of a third party plugin and stream its contents into Unity, instead of creating the camera feed itself (which is the default behavior).


Try out this 360 AR experience using this plugin and GyroscopeAccelerometerWebGL.


If you like my plugin, please consider leaving a review. It helps me immensely and encourages me to improve the plugin further, and other people to support my work :).