版本
menu_open

Build the application for a multi-architecture platform

Separate plug-in libraries are provided for platforms with multiple architectures. They are named by suffixing the base name with the architectures. Why would we need to do this? Unity defines designated architecture sub-folders for a few multi-architecture platforms such as Windows and Windows Store so that the plug-in binary files can be isolated while sharing the same file name. But no similar sub-folders are provided to the other similar platforms such as Vita. Therefore, these multi-architecture plug-in libraries need to co-exist in the same Designated Platform Plugin Folder, and be loaded at runtime correctly. They thus need to be named differently and the plug-in loader Unity script in the Integration needs to know their names at compile time.

Although having platform preprocessor switches, Unity has no similar compile-time mechanisms for distinguishing architectures. To minimize user effort, however, the Integration provides predefined custom compiler preprocessors for switching between plug-in libraries for different architectures.

To use the correct plug-in version for your build target, you can use the Unity 4's custom compiler preprocessor switch feature, also known as Scripting Define Symbols. The predefined custom preprocessors are listed in the following table:

Platform, Architecture

Custom Preprocessor

Default Architecture

Vita, SW

AK_ARCH_VITA_SW

Default

Vita, HW

AK_ARCH_VITA_HW

NO

To build for a specific architecture, enter the corresponding preprocessor into Build Settings > Player Settings... > Other Settings > Scripting Define Symbols, and then press Enter.

Note.gif
Note: There is no need to specify a preprocessor if you build for the default architecture of that platform.
Generated on Tue Aug 23 02:44:59 2016 for Wwise Unity Integration by  doxygen 1.6.3

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅