menu
版本
2017.1.9.6501
2024.1.5.8803
2023.1.13.8732
2022.1.19.8584
2021.1.14.8108
2019.2.15.7667
2019.1.11.7296
2018.1.11.6987
2017.2.10.6745
2017.1.9.6501
2016.2.6.6153
2015.1.9.5624
menu
2024.1.5.8803
2023.1.13.8732
2022.1.19.8584
2021.1.14.8108
2019.2.15.7667
2019.1.11.7296
2018.1.11.6987
2017.2.10.6745
2017.1.9.6501
2016.2.6.6153
2015.1.9.5624
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.
info
|
Note: There is no need to specify a preprocessor if you build for the default architecture of that platform. |