Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

RuntimePlatform

enumeration

Sugiere un cambio

¡Éxito!

Gracias por ayudarnos a mejorar la calidad de la documentación de Unity. A pesar de que no podemos aceptar todas las sugerencias, leemos cada cambio propuesto por nuestros usuarios y actualizaremos los que sean aplicables.

Cerrar

No se puedo enviar

Por alguna razón su cambio sugerido no pudo ser enviado. Por favor <a>intente nuevamente</a> en unos minutos. Gracias por tomarse un tiempo para ayudarnos a mejorar la calidad de la documentación de Unity.

Cerrar

Cancelar

Cambiar al Manual

Descripción

The platform application is running. Returned by 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, for example: if you need to check which platform you are running a webplayer you may check this at runtime.

Variables

OSXEditorIn the Unity editor on Mac OS X.
OSXPlayerIn the player on Mac OS X.
WindowsPlayerIn the player on Windows.
OSXWebPlayerIn the web player on Mac OS X.
OSXDashboardPlayerIn the Dashboard widget on Mac OS X.
WindowsWebPlayerIn the web player on Windows.
WindowsEditorIn the Unity editor on Windows.
IPhonePlayerIn the player on the iPhone.
XBOX360In the player on the XBOX360.
PS3In the player on the Play Station 3.
AndroidIn the player on Android devices.
LinuxPlayerIn the player on Linux.
WebGLPlayerIn the player on WebGL?
WSAPlayerX86In the player on Windows Store Apps when CPU architecture is X86.
WSAPlayerX64In the player on Windows Store Apps when CPU architecture is X64.
WSAPlayerARMIn the player on Windows Store Apps when CPU architecture is ARM.
TizenPlayerIn the player on Tizen.
PSP2In the player on the PS Vita.
PS4In the player on the Playstation 4.
XboxOneIn the player on Xbox One.
SamsungTVPlayerIn the player on Samsung Smart TV.
WiiUIn the player on Wii U.
tvOSIn the player on the Apple's tvOS.