版本
menu_open

Build for iOS

For general instructions on how to build the Unity Integration, which also applies to iOS, see Build the Integration code. To test your Unity application on an iOS device, you need to build and deploy your app to the device. When you execute Build or Build and Run in the Unity Editor, Unity generates an Xcode project based on the Unity scripts. Since Unity4.x, if the iOS plug-ins are put under the following folder, there is no need to configure the Xcode project for the library dependencies:

UNITY_PROJECT_ROOT/Assets/Plugins/iOS

Make sure AK::SoundEngine::iOS::Suspend() and AK::SoundEngine::iOS::WakeupFromSuspend are called by Unity's OnApplicationFocus() method. You should then verify that the content of the generated Objective-C source file, AppController.mm or UnityAppController.mm, corresponds to the following lines.

  • In applicationWillResignActive:
    AK::SoundEngine::iOS::Suspend();
    
  • And in applicationDidBecomeActive:
    AK::SoundEngine::iOS::WakeupFromSuspend();
    

If not, please adjust these lines accordingly. Then, build and run the Xcode project.

Unity does not yet support thumb instructions; therefore, employing thumb instructions is disabled in the Xcode project.

Building for Release

The Wwise Integration library, libAkSoundEngine.a, normally contains all debug symbols. This makes the library very big. Make sure you strip the debug symbols by specifying the Stripping Level option in the Other Settings section of the (iOS) Player Settings. Normally, the integration should add between one and two MB to your game.

You can trim the library further by removing unused effects plug-ins libraries. However, for this, you need to modify the AkSoundEngineiOS project and recompile it. See Build the Integration code.

Generated on Tue Aug 23 02:44:59 2016 for Wwise Unity Integration by  doxygen 1.6.3

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅