I’m currently working on a solution that gets audios from a server to Unity. Some of those audios are ambisonic and so I would like to know if there were any way to set the ambisonic parameter of a newly created audioclip (created with AudioClip.Create()) to true by script at runtime ?
I have not found a solution nor a thread with a clear answer yet…
if by '… parameter of a newly created audioclip (created with AudioClip.Create()) to true ’ you mean the _3D parameter in Create method then no - that’s for builtin (horizontal) spatialization only
I haven’t tested this whole substack properly fro some time, but you need ambisonic decoder to be imported in the project [and set it in audio settings] as minimum to be able to import amb clips; -
IIRC there is/was literally nothing for runtime though, unfortunately – don’t know how current UnityWebRequest and its Multimediahandler well… handles things, but chances are it doesn’t support amb files at all
Hello @r618 ,
I did not mean _3D parameter as I can already set that up correctly and have the “horizontal” spatialization. What I meant was the “ambisonic” flag (which you can see in the file)
yea i know, but those are just import settings, i.e. not runtime
as per my previous post i think (sure about 98%) there’s no runtime clip created ambisonic support