Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

+6 votes

Hello,

I'm a french technical sound designer using WWise with Unity.

It has been a long time there is a problem to display attenuation sphere in Unity.

I decided to correct the issue myself in the WWise - Unity API.  Here is How to do:


Issue Description

If you load a AkAmbient component in your Unity project, you would normally be able to see attenuation sphere when you choose to "show attenuation sphere" in "current event only" or "all events" modes.

In some cases, the attenuation spheres are not displayed (especially if you work on french work stations).


My Solution

First, you have to check in your Wwise project that you selected "generate XML metadata" and "Max attenuation":

Then the max attenuation distance will be able to be exported in XML data to be read by UNity-Wwise API.

In fact the WWise APi try to read an XML value with a dot to express max distance (ex: "10.50"). In some languages like French, this value would have to be expressed with a comma (like "10,50"), and not with a dot. So the XML reader script fail to understand “10.50".

- First solution (not tested, tell me if it's working on your PC): Switch the Windows local language to English (US).

- My solution that works (tested ok):

I corrected the script of the XML reader class in WWise Unity API, in a way that the XML parser can understand international naming convention with dots.

You can replace AkWwiseXMLBuilder.cs file in you want to see attenuation spheres in the following folder: “MyUnityProject\Assets\Wwise\Editor\WwiseWindows”

new AkWwiseXMLBuilder.cs script to download here.

If you do not want to copy this file each time you create a project, you will have to integrate Wwise using Offline WWise Api, in the Wwise launcher.

Then locate the downloaded archive in Wwise install folder (named Unity.Windows.tar.xyz).

You will finally have to replace in this archive the AkWwiseXMLBuilder.cs file by the new one.

In that way, each time you integrate Wwise in a new Unity project, the right cs file will be automatically copied.

in General Discussion by thibault b. (160 points)

3 Answers

+3 votes
Hello,
Thank you so much!
We also had this issue on french systems too.
Once the fix applied it worked after generating wwise soundbanks.
This fix needs to be in the newer versions of Wwise. I will ask the support about it.
by Adrien V. (340 points)
0 votes
Bonjour Thibault,

Je vous confirme que la première solution en changeant la langue locale de mon Mac fonctionne, cependant je n'ai pas réussi à faire fonctionner le script corrigé que vous proposez. Après avoir remplacé le fichier AkWwiseXMLBuilder.Cs, plus rien ne fonctionnait. Le script n'est pas reconnu sur ma version de Unity.

Je suis sur Unity 2018.4.32 avec le Wwise Adventure Game 2019.1.11. pour la certification Wwise 301.

Mais je suis déjà content d'avoir cette solution de changement de langage et vous remercie !
by lylian k. (150 points)
0 votes
Hi,

I am following the 301 certificate with the WAG using Wwise 2019.1.11 and Unity 2018.4.32.f1 on Windows.

I tried A LOT of different things, but this was the one that fixed the issue. Changing the system language from danish to english made the attenuation spheres appear.

Thank you so much for writing out a solution!
by Emil B. (140 points)
...