Search Issue Tracker
Duplicate
Votes
1
Found in
2021.2
2021.2.13f1
2022.1
2022.2
Issue ID
1406834
Regression
No
[WebGL] [iOS] WebCamTexture.devices always returns 1 device
How to reproduce:
1. Open the attached project ("1406834_20212.zip")
2. Build and deploy the WebGL project
3. In a browser visit the URL/IP of the web server the project was deployed with
4. Observe the quad and/or the JavaScript Console
Expected result: Back camera is rendered on the quad, WebCamTexture.devices returns the number of the cameras the device has
Actual result: Front camera is used as a fallback and rendered on the quad, WebCamTexture.devices returns 1 camera
Reproducible with: 2021.2.14f1, 2022.1.0b10, 2022.2.0a7
Could not test with: 2019.4.36f1, 2020.3.30f1 (does not ask for camera permissions)
Reproducible on:
iPhone 13 mini (iOS 15)
iPad 6th generation (iOS 14.4.2)
Not reproducible on:
VLNQA00264, Samsung Galaxy S10+ (SM-G975F), Android 10, CPU: NOT FOUND, GPU: Mali-G76
Note:
- Not reproducible with iOS Platform
- Tested on mobile Safari/Chrome
- WebCamTexture.devices.Length is logged in the JS Console (accessible through chrome://inspect or by connecting to the mobile device via network on desktop Safari (Develop -> "Name of device" -> "IP of device")
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
This is a duplicate of issue #1283191