Change Spatializer Plugin by editor script

Hi guys,

Is it possible to change the Spatializer Plugin audio setting by an editor script?

I can not seem to find such an option. I don’t see why this shouldn’t be possible in the editor while developing (not at runtime).

Thanks!

Actually - for starters - even reading the current Spatializer Plugin does not seem to be possible. Have I missed something?

I have the same question.

2862433--209525--upload_2016-11-24_18-33-11.png

But No Answer!

Being able to read it - is a must for sure.

@sunxl_cs - you can vote on my suggestion in unity feedback to add this functionality:
https://feedback.unity3d.com/suggestions/change-spatializer-plugin-by-script

still nothing :frowning:

1 Like

True…

Unityguys - even just being able to read can help quite a bit to avoid mixups, and I don’t see how this would be a big change for you.

And I don’t see why it shouldn’t at least be available to be written in editor script.

Does anyone have any idea how Anastasia Devana accomplished this in her old Spatial Audio Demo? Or did she use some other work around?

http://designingsound.org/2015/04/3d-audio-weighing-the-options/

It took me a while to find the solution so…

For those using Unity 2017.2 or later, you can use AudioSettings.GetSpatializerPluginName and AudioSettings.SetSpatializerPluginName.

For those using an older version, you can load the AudioSettings asset:
AssetDatabase.LoadMainAssetAtPath("ProjectSettings/AudioManager.asset") …and edit the serialized property “m_SpatializerPlugin”.

1 Like