Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

WebCamTexture play is black on Iphone6

Discussion in 'Editor & General Support' started by adre, Oct 28, 2014.

  1. adre

    adre

    Joined:
    Mar 28, 2014
    Posts:
    37
    Hello,
    anyone experiencing this issue?
    Same IOS version, same app, but on Iphone5 i got wct.play() playing correctly, while on iphone6 is totally black.

    Also, when i take the snap, i get the correct texture, so is just the play that's not working.
    Any thoughts?

    Code (JavaScript):
    1. function Start() {
    2.                 snap = null;
    3.                 var devices : WebCamDevice[]  = WebCamTexture.devices;
    4.                 deviceName = devices[0].name;
    5.                 wct = new WebCamTexture(deviceName, 512, 512, 30);
    6.                 wct.Play();
    7.                 GameObject.Find("BackgroundIma").guiTexture.texture = wct;
    8.  
    9. }
     
    Last edited: Oct 28, 2014
  2. propeller

    propeller

    Joined:
    Jul 2, 2012
    Posts:
    202
    same problem here! Seems to be an iOS 8 problem. When using MarkAsNonReadable() it works, but this is not an alternative for me because i need to read the pixels for a QR code scan.
    Please Unity help!!

    Edit: Actually my QR code scan works, although the screen is black, its only the image not showing up.