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.

0 votes

【Waapi】How can i create an object for "audioSource:maxRadiusAttenuation" as a result?  I use waapi in Unity&C#,and use this API :JsonUtility.ToJson()&JsonUtility.FromJson。Due to the symbol:":" between audioSource and maxRadiusAttenuation, I can not define a class named "audioSource:maxRadiusAttenuation"!!

or how can i return the result like "audioSource:maxRadiusAttenuation"?

in General Discussion by chenggongzhang (1.1k points)

1 Answer

0 votes
 
Best answer
We are currently working a WAAPI update that will provide new names with no ":". However we did not decided when this fix will be available.

For the time being, I suggest you do take the string results, and before you pass it to ToJson(), do a String.Replace("audioSource:maxRadiusAttenuation", "maxRadiusAttenuation"), then the ToJson will work, and you will be able to access field "maxRadiusAttenuation" (new name).
by Bernard R. (Audiokinetic) (35.8k points)
selected by chenggongzhang
Thanks very much!!You solved my problem perfectly!Hahaha!!And now i can also use Newtonsoft to solve this problem.And i am looking foward to this fix.
...