How do you force an audioclip to import as a 2d sound using WWW?
I’m importing music into the game at runtime from a custom folder after building but it always imports as a 3d sound. It seems like AudioImporter.threeD is for use in the Editor but doesn’t apply for runtime WWW Object importing?
AssetBundles don’t seem to be the answer here either, I need a custom folder for users to drop audio into so they could play their own music ingame for example.
code is something like this jibberish:
`
…
public string url;
private string urlPrefix = "file://"+Application.dataPath+"/";
public void GetWww();
{
wwwObject = new WWW(urlPrefix+url.Value);
storeAudio.Value = wwwObject.audioClip;
//now magically set the clip to 2d
}
...
`
Thanks