Version

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

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise