Search Unity

Does Windows Phone supports webcamTexture ?

Discussion in 'Windows' started by martdob, Jul 29, 2013.

  1. martdob

    martdob

    Joined:
    Aug 30, 2012
    Posts:
    32
    Hi,
    if I am trying to use the webcamTexture. The script works fine in the editor:


    function Start () {
    var webcamTexture : WebCamTexture = WebCamTexture();
    renderer.material.mainTexture = webcamTexture;
    webcamTexture.Play();
    }

    If I build this code for Windows Phone I get the error message:
    The Name "WebCamTexture" does not denote a valid type.

    Regards
    Martin
    $error.PNG
     
    Last edited: Jul 30, 2013
  2. kiriihmete

    kiriihmete

    Joined:
    Jul 25, 2013
    Posts:
    6
    just curious but have you tried converting this script to C# and strongly typing the object?
     
  3. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    No it's not supported yet.
     
  4. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,822
    I couldn't get a Windows 8 build to use it without crashing. Your best bet is to hook into a XAML overlay and use that for any Webcam features.