Question by
Kt-ay · Sep 15, 2016 at 08:42 AM ·
unity5audioclip www load
5.X AudioClip.Create() unavailable How will float[] data Convert to AudioClip ?
Analog network GetData
var AudioClipdata = new float[WWWClip.samples * WWWClip.channels];
WWWClip.GetData(AudioClipdata, 0);
clip.SetData(AudioClipdata, 0);
bofq.clip = clip;
bofq.Play();
The editor told me : UnassignedReferenceException: The variable clip of Sound has not been assigned. You probably need to assign the clip variable of the Sound script in the inspector.
So sorry。 My English is not good ,But I can't find the right solution. I hope you can help me.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612092837im_/https://answers.unity.com/themes/thub/images/avi.jpg)