Unity3D圣典3.3版本-中文版
文集大纲加载中……
本文档使用 MrDoc 发布
-
+
首页
Application 应用程序
# 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](Application.loadedLevel.html) The level index that was last loaded (Read Only). 最后加载的关卡索引(只读) * [loadedLevelName](Application.loadedLevelName.html) The name of the level that was last loaded (Read Only). 最后加载的关卡的名字。 * [isLoadingLevel](Application.isLoadingLevel.html) Is some level being loaded? (Read Only) 是否有一些关卡正在读取(只读) * [levelCount](Application.levelCount.html) The total number of levels available (Read Only). 可用的关卡总数。(只读) * [streamedBytes](Application.streamedBytes.html) How many bytes have we downloaded from the main unity web stream (Read Only). 我们从主 Unity 网页流中下载了多少字节(只读)。 * [isPlaying](Application.isPlaying.html) Returns true when in any kind of player (Read Only). 当在任何种类的播放器时,返回真(只读)。 * [isEditor](Application.isEditor.html) Are we running inside the Unity editor? (Read Only) 是在 Unity 编辑器内运行? * [isWebPlayer](Application.isWebPlayer.html) Are we running inside a web player? (Read Only) 是否在一个网页播放器中运行?(只读) * [platform](Application.platform.html) Returns the platform the game is running (Read Only). 返回游戏运行的平台(只读)。 * [runInBackground](Application.runInBackground.html) Should the player be running when the application is in the background? 应用程序在后台时是否应该被运行? * [dataPath](Application.dataPath.html) Contains the path to the game data folder (Read Only). 包含游戏数据文件夹的路径(只读)。 * [persistentDataPath](file:///E:/Program%20Files/Unity/Editor/Data/Documentation/Documentation/ScriptReference/Application-persistentDataPath.html) Contains the path to a persistent data directory (Read Only). 包含一个持久数据目录的路径(只读)。 * [temporaryCachePath](file:///E:/Program%20Files/Unity/Editor/Data/Documentation/Documentation/ScriptReference/Application-temporaryCachePath.html) Contains the path to a temporary data / cache directory (Read Only). 包含一个临时数据/缓存目录的路径(只读)。 * [srcValue](Application.srcValue.html) The path to the web player data file relative to the html file (Read Only). 相对于 html 文件的 web 播放器数据文件的路径(只读)。 * [absoluteURL](Application.absoluteURL.html) The absolute path to the web player data file (Read Only). 到 web 播放器数据文件夹的绝对路径(只读)。 * [unityVersion](Application.unityVersion.html) The version of the Unity runtime used to play the content. 用于播放内容的 Unity 运行时版本。 * [webSecurityEnabled](Application.webSecurityEnabled.html) Indicates whether Unity's webplayer security model is enabled. 指示是否 webplayer 的安全模式是否被启用。 * [targetFrameRate](Application.targetFrameRate.html) Instructs game to try to render at a specified frame rate. 命令游戏尝试以一个特定的帧率渲染。 * [systemLanguage](Application.systemLanguage.html) The language the user's operating system is running in. 用户操作系统正在运行的语言 * [backgroundLoadingPriority](Application.backgroundLoadingPriority.html) Priority of background loading thread. 后台装载线程优先级 ### Class Functions**类函数** * [Quit](Application.Quit.html) Quits the player application. Quit is ignored in the editor or the web player. 退出应用程序。在编辑器或者 web 播放器中退出被忽略。 * [CancelQuit](Application.CancelQuit.html) Cancels quitting the application. This is useful for showing a splash screen at the end of a game. 取消退出。这可以用来在退出游戏的时候显示一个退出画面。 * [LoadLevel](Application.LoadLevel.html) Loads the level. 加载关卡,也就是加载一个新的场景。 * [LoadLevelAsync](Application.LoadLevelAsync.html) Loads the level asynchronously in the background. 在后台异步加载关卡,也就是说,在后台非同步加载新的场景。 * [LoadLevelAdditiveAsync](Application.LoadLevelAdditiveAsync.html) Loads the level additively and asynchronously in the background. 在后台异步累加关卡,也就是说在后台非同步加载新的场景,但当前的场景不会被销毁。 * [LoadLevelAdditive](Application.LoadLevelAdditive.html) Loads a level additively. 累加一个关卡,也就是说,加载一个新的场景,当前场景不会被销毁。 * [GetStreamProgressForLevel](Application.GetStreamProgressForLevel.html) How far has the download progressed? [0...1] 下载的进度是多少? * [CanStreamedLevelBeLoaded](Application.CanStreamedLevelBeLoaded.html) Can the streamed level be loaded? 能流模式加载的关卡是否被加载? * [CaptureScreenshot](Application.CaptureScreenshot.html) Captures a screenshot at path filename as a PNG file. 捕捉屏幕作为一个 PNG 文件保存在路径 filename。简单来说就是截屏 * [ExternalCall](Application.ExternalCall.html) Calls a function in the containing web page (Web Player only). 调用一个包含在网页中的函数(只用于 Web Player)。 * [ExternalEval](Application.ExternalEval.html) Evaluates script snippet in the containing web page (Web Player only). 调用包含在网页中的片段脚本函数(只用于 Web Player)。 * [OpenURL](Application.OpenURL.html) Opens the url in a browser. 在浏览器中打开 url 。 * [RegisterLogCallback](Application.RegisterLogCallback.html) Register a delegate to be called on log messages. 在一个日志信息上注册一个委托来被调用。 * [RegisterLogCallbackThreaded](Application.RegisterLogCallbackThreaded.html) Register a delegate to be called on log messages. 在一个日志信息上注册一个委托来被调用。 ### Delegates**委托** * [LogCallback](Application.LogCallback.html) Use this delegate type with RegisterLogCallback to monitor what gets logged. 用 RegisterLogCallback 来使用这个委托类型,去监控什么得到记录了
da
2022年5月13日 22:55
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码