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.

Script compiling errors when integrating into Unity 2017

+1 vote

I'm trying to integrate Wwise into a Unity 2017.1.0f1 project, but it consistantly fails and brings up the following script compiling errors:

 

  1. A script compilation error occurred during the execution in Unity. Please click Open Log to review the Unity log.

  2. Assets/Wwise/Editor/WwiseMenu/Common/AkExampleAppBuilderBase.cs(109,45): error CS0619: `UnityEditor.BuildTarget.iPhone' is obsolete: `Use iOS instead (UnityUpgradable) -> iOS'

  3. Assets/Wwise/Editor/WwiseMenu/Common/AkExampleAppBuilderBase.cs(142,45): error CS0619: `UnityEditor.BuildTarget.iPhone' is obsolete: `Use iOS instead (UnityUpgradable) -> iOS'

  4. 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?

  5. 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?

  6.  

  7. The project was not modified.

 

Integration worked fine with Unity 5, and it's necessary for the current project to use 2017 so there's no choice of going back. 

Any help to fix this issue?

asked Jul 3 in General Discussion by Riley W. (150 points)

1 Answer

+1 vote
 
Best answer

As said here, juste update the #if UNITY_5 to #if UNITY5_3_OR_NEWER should fix the issue. But i totally agree it should be fixed in the base package as it's not the first time we get such basic issue.

answered Jul 13 by Sébastien C. (620 points)
selected 6 days ago by Riley W.
Whoops, never managed to find that previous thread.

Thanks for your answer though. An annoyance but at least there is an easy fix.
...