I need some help with this code please. The other threads didn’t really work, and in theory it should work, but the Camera I am using is either not picking it up or the code is wrong! Please help!
#pragma strict
function Start() {
if(Input.GetKey("v")==true);
{
voiceChat==true;
}
}
function voiceChat() {
var aud = GetComponent.<AudioSource>();
aud.clip = Microphone.Start("Built-in Microphone", true, 10, 44100);
aud.Play();
Debug.Log(Microphone.IsRecording);
}