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
Hi guys, I update mi version of unity to 2017.1, and when I try to integrate it with Wwise 2016.2.4.6098 the following errors are displayed:

2017-07-12T19:34:10.938Z: --- END UNITY LOG ---
2017-07-12T19:34:12.467Z: Game integration: Pushing progress: A script compilation error occurred during the execution in Unity. Please click Open Log to review the Unity log.
Assets/Wwise/Editor/WwiseMenu/Common/AkExampleAppBuilderBase.cs(109,45): error CS0619: `UnityEditor.BuildTarget.iPhone' is obsolete: `Use iOS instead (UnityUpgradable) -> iOS'
Assets/Wwise/Editor/WwiseMenu/Common/AkExampleAppBuilderBase.cs(142,45): error CS0619: `UnityEditor.BuildTarget.iPhone' is obsolete: `Use iOS instead (UnityUpgradable) -> iOS'
Assets/Wwise/Editor/WwiseSetupWizard/AkWwisePostImportCallbackSetup.cs(217,57): error CS1061: Type `AkWwiseProjectData' does not contain a definition for `CurrentPluginConfig' and no extension method `CurrentPluginConfig' of type `AkWwiseProjectData' could be found. Are you missing an assembly reference?
Assets/Wwise/Editor/WwiseSetupWizard/AkWwisePostImportCallbackSetup.cs(219,33): error CS1061: Type `AkWwiseProjectData' does not contain a definition for `CurrentPluginConfig' and no extension method `CurrentPluginConfig' of type `AkWwiseProjectData' could be found. Are you missing an assembly reference?

 

I don't have much experience in Wwise and Unity in fact that is my firs incursion and with unity 5.6 my project were integrate witouth troubles

 

regards.
in General Discussion by Victor S. (100 points)

1 Answer

+2 votes

Yes, that's because Audiokinetic doesn't always take care to use the correct defines. You need to update them yourself in three files :

  • AkInitializer
  • AkExempleAppBuilderBase
  • AkWwiseProjectData

Just replace if this files :

#if UNITY_5 

by

 #if UNITY_5_3_OR_NEWER

This way you should be able to compile for any incoming version of Unity.

by Sébastien C. (760 points)
best process to make those edits?
If it doesn't work with UNITY_5_3_OR_NEWER instead append all places in /Wwise folder in scripts, where it says
"#if UNITY_5"
to
"#if UNITY_5 || UNITY_2017"
...