找回密碼
 注冊帳號

掃一掃,訪問微社區

application.platform 平臺

2014-12-31 08:54| 發布者: 楊炎| 查看: 2535| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: application.platform 平臺static varplatform:runtimeplatformdescription描述returns the platform the game is running (read only).返回游戲運行的平臺(只讀)。use this property if you absolutely need to d ...

application.platform 平臺

static varplatform:runtimeplatform

description描述

returns the platform the game is running (read only).

返回游戲運行的平臺(只讀)。

use this property if you absolutely need to do some platform dependent work. see also:runtimeplatform

如果你要做一些平臺相關的操作使用這個屬性

另參見:runtimeplatform

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void start() {

if (application.platform ==runtimeplatform.windowsplayer)

print("do something special here!");

}

}

function start () {

if (application.platform ==runtimeplatform.windowsplayer)

print ("do something special here!");

}

文章點評
女校游泳队彩金