RuntimePlatform

enumeration

Cambiar al Manual

Descripción

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.

Variables

OSXEditorIn the Unity editor on macOS.
OSXPlayerIn the player on macOS.
WindowsPlayerEn el player en Windows.
WindowsEditorEn el editor de Unity en Windows.
IPhonePlayerEn el player en el iPhone.
AndroidEn el player en dispositivos Android.
LinuxPlayerEn el player en Linux.
LinuxEditorIn the Unity editor on Linux.
WebGLPlayerIn the player on WebGL
WSAPlayerX86En el player en Windows Store Apps cuando la arquitectura de CPU es x86.
WSAPlayerX64En el player en Windows Store Apps cuando la arquitectura CPU es x64.
WSAPlayerARMEn el player en Windows Store Apps cuando la arquitectura CPU es ARM.
PSP2En el player en PS Vita.
PS4En el player en Playstation 4.
XboxOneEn el player en Xbox One.
tvOSEn el player en el tvOS de Apple.
SwitchIn the player on Nintendo Switch.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961