Unity Webcamtexture Android



  1. Unity Webcam Texture Android Apk
  2. Webcamtexture To Texture2d
  3. Unity Webcamtexture Android Rotation
  4. Unity Webcam Texture Android Download
  • Unity is the ultimate game development platform. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, consoles or the Web, and connect with loyal and enthusiastic players and customers.
  • How to reproduce: 1) Open the attached project 2) Build and run on Android device 3) Upon app launch, deny camera permission 4) Click the button in the middle of the screen to start camera.

Steps to reproduce: 1. Open QA stripped project 2. Deploy to device 3. Press 'Switch Direct' button - CRASH. Reproduced on: 2018.2.0a1, 2018.2.0f2, 2018.3.0a6.

I'm using a WebCamTexture on iOS to display a live background from the back facing camera. Unfortunately the image is displayed to dark. Adding Unlit shaders in the Editor works, but as soon as I use a shader on iOS the live preview is not anymore shown.

Can I increase the brightness of the WebCamTexture without using a shader? Or is there any shader that works with this texture on the iOS? Furthermore, is it normal to consume a lot of GPU/CPU so that my models rotate much slower in the foreground?

Thanks, Thomas

Unity Webcam Texture Android Apk

Hey there,

I've already asked a question about how to get the android lock screen enabled in dev builds because I need to debug an issue which only occurs when the lock screen is shown. However I thought I ask if anyone knows how to just solve the problems I'm having.

UnityTexture

I'm almost certain it has something to do with the WebCamTexture as, in most parts of my app, I can lock then unlock the device just fine. In the one part which uses a WebCamTexture to show the feed from the device's camera on screen, things go wrong.

What tends to happen is that once I unlock, the app resumes but some of my UI elements are missing. Specifically the RawImage displaying the WebCamTexture is missing as are any UI elements in the same level of the Unity Editor's hierarchy or lower. UI elements higher up the hierarchy are present and correct. In my case this means before I lock the device I can see this;

An exit button in the top left, my WebCamTexture center, and two buttons along the bottom. However after I unlock the screen I see this;

All the UI bar the exit button is missing. Sometimes the app continues to work though all I can do his hit the exit button. Sometimes it crashes shortly after. I've tried my best to work around the problem by disabling the WebCamTexture when the lock occurs and so on but so far I've had no luck.

Webcamtexture To Texture2d

UnityUnity

Unity Webcamtexture Android Rotation

Any advice would be gratefully received.

Unity Webcam Texture Android Download

1.png(403.4 kB)