Search Unity

Microphone support?

Discussion in 'Windows' started by SniperED007, Sep 30, 2013.

  1. SniperED007

    SniperED007

    Joined:
    Sep 29, 2013
    Posts:
    345
    I'm getting the following error:

    error CS0103: The name `Microphone' does not exist in the current context

    It works in Unity without issues, but when I try to deploy to the phone it gives the above error.
    Is it because it's not supported or is there something I have to do?
     
  2. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Check here:
    https://docs.unity3d.com/Documentation/Manual/windowsstore-gettingstarted.html

    Things that are not yet supported:
    Network classes, WWW is supported though
    Animation on script variables
    AnimationEvent callback functions with arguments (you have to provide a function with no arguments or with AnimationEvent argument)
    GameObject.SendMessage (partially works, but function which accepts the message must match the message sent, because the argument conversion doesn't work)
    Cloth
    Microphone
    You can't access C# classes from JS or Boo scripts, you should be able to access JS, Boo classes from C#
    JS and Boo scripts won't pass WACK at the moment
    Fog doesn't work on devices with feature level < 9.3, you need to implement it manually, see http://files.unity3d.com/tomas/Metro/Examples/MyCustomFog.shader
     
  3. SniperED007

    SniperED007

    Joined:
    Sep 29, 2013
    Posts:
    345
    thanks for the quick and very informative reply!
     
  4. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,822
    In the meantime you can write something in your XAML or C++ solution to access the microphone.