版本
Although Unity has platform preprocessor switches, it 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 Unity'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: There is no need to specify a preprocessor if you build for the default architecture of that platform. |