Application.platform 平台
来源:互联网 发布:2016年云计算发展趋势 编辑:程序博客网 时间:2024/06/11 18:23
返回游戏运行的平台(只读)。
function Start () {if (Application.platform == RuntimePlatform.WindowsPlayer)print ("Do something special here!");}
注意:使用RuntimePlatform和Platform两者是不同的,取决于编译是使用RuntimePlatform在运行时判断的,还是Platform取决于编译在编译时判断的。因此如果可以使用platform取决于编译,不要犹豫使用它。大多数情况下,可以使用这两种获得相同的功能,使用定义将产生更小和更快代码,因为你不需要在运行时检查。有些情况下必须使用RuntimePlatform,例如,如果需要检查那个平台运行webplayer,这个可以在运行时检查 。
Values值
- OSXEditorIn the Unity editor on Mac OS X.
在Mac OS X 平台的Unity 编辑器中。 - OSXPlayerIn the player on Mac OS X.
在Mac OS X 平台的播放器中。 - WindowsPlayerIn the player on Windows.
在Windows平台的播放器中。 - OSXWebPlayerIn the web player on Mac OS X.
在Mac OS X平台的web播放器中。 - OSXDashboardPlayerIn the Dashboard widget on Mac OS X.
在Mac OS X平台的Dashboard widget(仪表板小工具)中。 - WindowsWebPlayerIn the web player on Windows.
在Windows平台的web播放器中。 - WiiPlayerIn the player on Nintendo Wii.
在Nintendo Wii平台的播放器中。 - WindowsEditorIn the Unity editor on Windows.
在Windows平台的Unity编辑器中。 - IPhonePlayerIn the player on the iPhone.
在iPhone平台的播放器中。 - XBOX360In the player on the XBOX360
在XBOX360平台的播放器中。 - PS3In the player on the Play Station 3
在PS3平台的播放器中。 - AndroidIn the player on Android devices.
在Android平台的播放器中。
- Application.platform 平台
- Big Data Application Platform
- platform平台总线驱动
- platform平台设备学习
- 获取设备平台 platform
- platform平台设备驱动
- platform平台设备学习
- platform平台总结
- platform.system()检测平台
- Python Platform 平台信息
- platform 平台总线
- platform平台总线
- 整理--platform平台总线
- Linux platform平台设备
- REALbasic Cross-Platform Application Development
- Android - modern mobile application platform
- linux platform平台设备驱动
- linux platform平台设备驱动 .
- ZOJ 1383 Binary Numbers
- short s1 = 1; s1 = s1 + 1;有什么错? short s1 = 1; s1 += 1;有什么错?
- Android小项目——MyPlayer
- C# 中 Struct 与 Class 的区别,以及两者的适用场合
- mysql 淘宝商铺 配置参数
- Application.platform 平台
- 库函数memmove()实现
- Oracle数据库连接测试
- ORACLE:DBMS_METADATA.GET_DDL的用法
- Objective-C 、Java、C++的语法对比 (二)
- Highcharts翻译系列八:Pane窗格选项和PlotOptions绘图选项概览
- oracle游标的定义使用
- xyssl资料整理(一) 对aescrypt2工程的理解
- SQL在线查询设计器2