Search Issue Tracker

Won't Fix

Votes

0

Found in

2018.3.11f1

Issue ID

1144454

Regression

Yes

[iOS] WebCamTexture request size is ignored

iOS

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 3Secondary functionality broken

To reproduce:
1. Open attached project "WebCamTexReturnsMaxSize.zip"
2. Build for iOS
3. Deploy the Xcode project to an iOS device

Expected result: the smallest camera picture resolution is returned in the console
Actual result: using new WebCamTexture returns the maximum value of the front-facing camera in the console

Reproduced on:
2018.3.0a3 2018.3.13f1 2019.1.0f2 2019.2.0a11

Results:
-w:2736 h:2052

Not reproduced on:
2017.4.25f1 2018.2.21f1

Results:
-w:352 h:288

Devices reproduced on:
-iPad Pro 2018 12.9" iOS 12.1
-iPhone Xs iOS 12.0

Devices not reproduced on:
-iPad Pro 10.5" iOS 11.3 Second Gen
-iPad Air 2 iOS 11.0.3
-iPad 6th Gen iOS 11.4.1
-VLNQA00125, Google Pixel 2 (Pixel 2), Android 8.1.0, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540
-iPhone 8 Plus iOS 12.1.2
-iPhone 8 Plus iOS 12.0

Notes:
-Xcode errors when deploying to device 2018.3.0a1 - 2018.3.0a2, 2018.3.0b1 - 2018.3.0b5
-Doesn't reproduce on Android

Response avatar

Resolution Note:

Naive selection of a device from a list is not working after Unity added support to iPhone/iPad for Depth Camera. https://docs.unity3d.com/ScriptReference/WebCamTexture-ctor.html https://docs.unity3d.com/ScriptReference/WebCamDevice.html In order to select right device from WebCamTexture.devices do no relay on any assumption about device order but instead check WebCamDevice kind and availableResolutions properties to select correct device.

Comments (1)

  1. 126af60bb28d3f487ee917ebde5c88fc?d=mm

    karsnen

    Apr 18, 2019 01:13

    Is this an issue with regards to :
    WebCamTexture.width or .height?

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.