La aplicación de la plataforma se está ejecutando. Retornado por Application.platform.
Note: The difference between using RuntimePlatform and Platform dependent Compilation is that using RuntimePlatform is evaluated at runtime while Platform dependent Compilation is evaluated at compile time. So if you can use platform dependent compilation, don't hesitate to use it. In most cases, you can get the same functionality using both, and using the defines will produce smaller and faster code, as you don't need to check at runtime. There are some cases where RuntimePlatform is needed at runtime.
OSXEditor | In the Unity editor on macOS. |
OSXPlayer | In the player on macOS. |
WindowsPlayer | En el player en Windows. |
WindowsEditor | En el editor de Unity en Windows. |
IPhonePlayer | En el player en el iPhone. |
Android | En el player en dispositivos Android. |
LinuxPlayer | En el player en Linux. |
LinuxEditor | In the Unity editor on Linux. |
WebGLPlayer | In the player on WebGL |
WSAPlayerX86 | En el player en Windows Store Apps cuando la arquitectura de CPU es x86. |
WSAPlayerX64 | En el player en Windows Store Apps cuando la arquitectura CPU es x64. |
WSAPlayerARM | En el player en Windows Store Apps cuando la arquitectura CPU es ARM. |
PSP2 | En el player en PS Vita. |
PS4 | En el player en Playstation 4. |
XboxOne | En el player en Xbox One. |
tvOS | En el player en el tvOS de Apple. |
Switch | In the player on Nintendo Switch. |