Some reason my script is giving me this error: BCE0019: ‘Start’ is not a member of ‘Microphone’.
My script is like this atm:
function Update () {
if (Input.GetButtonDown("Mic")){
audio.clip = Microphone.Start("Built-in Microphone", true, 10, 44100);
networkView.RPC("Speak", RPCMode.Others);
}
}
@RPC
function Speak(){
audio.Play();
}
What could be the problem? Microphone.Start should work…
( Unity - Scripting API: Microphone.Start ).