找回密碼
 注冊帳號

掃一掃,訪問微社區

application 應用程序

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

摘要: application 應用程序access to application run-time data.訪問應用程序的運行時數據。this class contains static methods for looking up information about and controlling the run-time data.這個類包含靜態方 ...

application 應用程序

access to application run-time data.

訪問應用程序的運行時數據。

this class contains static methods for looking up information about and controlling the run-time data.

這個類包含靜態方法,來查找相關信息并控制運行時數據。

class variables類變量

loadedlevel

the level index that was last loaded (read only).

最后加載的關卡索引(只讀)

loadedlevelname

the name of the level that was last loaded (read only).

最后加載的關卡的名字。

isloadinglevel

is some level being loaded? (read only)

是否有一些關卡正在讀取(只讀)

levelcount

the total number of levels available (read only).

可用的關卡總數。(只讀)

streamedbytes

how many bytes have we downloaded from the main unity web stream (read only).

我們從主unity網頁流中下載了多少字節(只讀)。

isplaying

returns true when in any kind of player (read only).

當在任何種類的播放器時,返回真(只讀)。

iseditor

are we running inside the unity editor? (read only)

是在unity編輯器內運行?

iswebplayer

are we running inside a web player? (read only)

是否在一個網絡播放器中運行?(只讀)

platform

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

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

runinbackground

should the player be running when the application is in the background?

應用程序在后臺時是否應該被運行?

datapath

contains the path to the game data folder (read only).

包含游戲數據文件夾的路徑(只讀)。

persistentdatapath

contains the path to a persistent data directory (read only).

包含一個持久數據目錄的路徑(只讀)。

temporarycachepath

contains the path to a temporary data / cache directory (read only).

包含一個臨時數據/緩存目錄的路徑(只讀)。

srcvalue

the path to the web player data file relative to the html file (read only).

相對于html文件的web播放器數據文件的路徑(只讀)。

absoluteurl

the absolute path to the web player data file (read only).

到web播放器數據文件夾的絕對路徑(只讀)。

unityversion

the version of the unity runtime used to play the content.

用于播放內容的unity運行時版本。

websecurityenabled

indicates whether unity's webplayer security model is enabled.

指示是否webplayer的安全模式是否被啟用。

targetframerate

instructs game to try to render at a specified frame rate.

命令游戲嘗試以一個特定的幀率渲染。

systemlanguage

the language the user's operating system is running in.

用戶操作系統正在運行的語言

backgroundloadingpriority

priority of background loading thread.

后臺裝載線程優先級

internetreachability

returns internet reachability status.

返回網絡可達性狀態。

class functions類函數

quit

quits the player application. quit is ignored in the editor or the web player.

退出應用程序。在編輯器或者web播放器中退出被忽略。

cancelquit

cancels quitting the application. this is useful for showing a splash screen at the end of a game.

取消退出。這可以用來在退出游戲的時候顯示一個退出畫面。

loadlevel

loads the level.

加載關卡,也就是加載一個新的場景。

loadlevelasync

loads the level asynchronously in the background.

在后臺異步加載關卡,也就是說,在后臺非同步加載新的場景。

loadleveladditiveasync

loads the level additively and asynchronously in the background.

在后臺異步累加關卡,也就是說在后臺非同步加載新的場景,但當前的場景不會被銷毀。

loadleveladditive

loads a level additively.

累加一個關卡,也就是說,加載一個新的場景,當前場景不會被銷毀。

getstreamprogressforlevel

how far has the download progressed? [0...1]

下載的進度是多少?

canstreamedlevelbeloaded

can the streamed level be loaded?

能流模式加載的關卡是否被加載?

capturescreenshot

captures a screenshot at path filename as a png file.

捕捉屏幕作為一個png文件保存在路徑filename。簡單來說就是截屏

externalcall

calls a function in the containing web page (web player only).

調用一個包含在網頁中的函數(只用于web player)。

externaleval

evaluates script snippet in the containing web page (web player only).

調用包含在網頁中的片段腳本函數(只用于web player)。

openurl

opens the url in a browser.

在瀏覽器中打開url 。

registerlogcallback

register a delegate to be called on log messages.

在一個日志信息上注冊一個委托來被調用。

registerlogcallbackthreaded

register a delegate to be called on log messages.

在一個日志信息上注冊一個委托來被調用。

delegates委托

logcallback

use this delegate type with registerlogcallback to monitor what gets logged.

用registerlogcallback來使用這個委托類型,去監控什么得到記錄了

相關閱讀

文章點評
相關文章
女校游泳队彩金