application 应用程序

2014-12-31 07:50| 发布者: 杨炎| 查看: 2035| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本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来使用这个委托类型,去监控什么得到记录了

相关阅读

文章点评
相关文章