La section Questions et réponses de la communauté Audiokinetic est un forum où les utilisateurs de Wwise et de Strata peuvent poser des questions et répondre à celles des autres membres de la communauté. Si vous souhaitez obtenir une réponse de la part de l'équipe de soutien technique d'Audiokinetic, veillez à utiliser le formulaire de Tickets de Soutien.

How to change Unitys attenuation sphere opacity and colour

0 votes

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.

demandé 18-Avr-2020 dans General Discussion par Jason M. (170 points)

2 Réponses

+2 votes
 
Meilleure réponse

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. 

 

répondu 20-Avr-2020 par Mads Maretty S. (Audiokinetic) (39,400 points)
sélectionné 22-Nov-2021 par 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 vote
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.
répondu 21-Nov-2021 par Chris K. (160 points)
...