Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. Contact Sales if your project requires a support plan.

Error with Integration of Wwise and Unity 2017.1

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.
asked Jul 12 in General Discussion by Victor S. (100 points)

1 Answer

0 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.

answered Jul 13 by Sébastien C. (620 points)
best process to make those edits?
...