在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

How to change Unitys attenuation sphere opacity and colour

0 投票

As the title says. I'm posting here cause i'm assuming the sphere only exists when you integrate Wwise into Unity.

In the below image the sphere is just about see-able and if it's up against the same colour, it can't be seen at all.

最新提问 4月 18, 2020 分类:General Discussion | 用户: Jason M. (170 分)

2 个回答

+2 投票
 
已采纳

Hey Jason, 

You head into the AkAmbientInspector script. In there, search for SPHERE_COLOR and you should find this...
new UnityEngine.Color(1.0f, 0.0f, 0.0f, 0.1f);
... then set a new float number in the last input and save.

Let me know if this is what you needed. 

 

最新回答 4月 20, 2020 用户: Mads Maretty S. (Audiokinetic) (39,400 分)
采纳于 11月 22, 2021 用户:Mads Maretty S. (Audiokinetic)
Brilliant! I change it into ocean blue looks great! Thank you
Unfortunately it still doesn't work for me. My sphere looks transparent. Is there another solution?
Like completely transparent? You could try checking if the Max Attenuations are enabled when generating SoundBanks. Maybe delete the SoundBanks and generate new ones.
Max Attenuations are enabled. Maybe it depends on the WAG version, so I'll try installing the 2019.1 version, which was recommended in another Q&A.

Anyway, the Attenuation defined in Wwise should work even if the Sphere Collider isn't colored after setting "Current_Event_Only" in Unity, right?

Thanks a lot for the support
+1 投票
I know that this is quite an old thread but I had to deal with a similar issue and finally managed to sort it out and hopefully my solution could help someone else. I work on a PC (Wwise version 2019.1.9.7221 / Unity version 2019.3.12f1) so no idea if this would be relevant for Mac users but here it is:

First I had to go to Wwise>Project>Project Settings..>SoundBanks and make sure Generate XML Metadata and everything under the Metadata Options has been selected. Make sure to save after that so the changes are detected by Wwise. This however did not solve my issue. What did, was making sure that my OS region and language are set to either UK or US. Only after changing these settings and rebooting my machine, the spheres finally appeared.

I have no idea why this worked but it did for me and I hope it can help others.
最新回答 11月 21, 2021 用户: Chris K. (160 分)
...