The basic content is as follows:
1 //Sound Audio2Audiosource Audiosource =NewAudiosource ();3Audiosource.play ();//Play4Audiosource.stop ();//Stop5Audiosource.pause ();//Pause6Audiosource.isplaying ();//Are you playing7 8 //dynamically get sound resources in code and play them out9 Short[] data =NULL;//data, must be of type shortTenAudioClip AudioClip = Audioclip.create ("",sizeof(Hostdata),2,6400,false); OneAudioclip.setdata (data,0); A -Audiosource.clip =AudioClip; - Audiosource.play (); the - - - //Movie Video + - //PC + movietexture movietexture; A Movietexture.play (); at movietexture.stop (); - - //ios/android -Handheld.playfullscreenmovie ("", Color.Blue, Fullscreenmoviecontrolmode.canceloninput, scalemode.scaleandcrop); - - //Record Record inAudioClip Audiocliprecord = Microphone.start ("",true,1,6400); -Microphone.devices ();//Get all Devices
"Unity3d Study----Wheat Academy"----------unity3d common components and Analysis----------Code control Audio Video