Version: 5.4

Application

class in UnityEngine

Switch to Manual

Description

Доступ к данным во время выполнения приложения.

Этот класс содержит статические методы для поиска информации "об" и управления данными во время выполнения.

Static Variables

absoluteURLАбсолютный путь к файлу данных веб плеера (Read Only).
backgroundLoadingPriorityПриоритет потока фоновой загрузки.
bundleIdentifierВозвращает true, если целостность приложения может быть подтверждена.
cloudProjectIdA unique cloud project identifier. It is unique for every project (Read Only).
companyNameReturn application company name (Read Only).
dataPathСодержит путь к папке игровых данных (Read Only).
genuineВозвращает false, если в приложение вносятся изменения после того, как оно было собрано.
genuineCheckAvailableВозвращает true, если целостность приложения может быть подтверждена.
installModeВозвращает true, если целостность приложения может быть подтверждена.
internetReachabilityReturns the type of Internet reachability currently possible on the device.
isConsolePlatformIs the current Runtime platform a known console platform.
isEditorМы запустились внутри редактора Unity? (Read Only)
isMobilePlatformIs the current Runtime platform a known mobile platform.
isPlayingReturns true when in any kind of player (Read Only).
isShowingSplashScreenChecks whether splash screen is being shown.
isWebPlayerAre we running inside a web player? (Read Only)
persistentDataPathСодержит путь к постоянной директории данных (Read Only).
platformСодержит путь к папке игровых данных (Read Only).
productNameReturns application product name (Read Only).
runInBackgroundShould the player be running when the application is in the background?
sandboxTypeВозвращает true, если целостность приложения может быть подтверждена.
srcValueThe path to the web player data file relative to the html file (Read Only).
streamedBytesHow many bytes have we downloaded from the main unity web stream (Read Only).
streamingAssetsPathСодержит путь к папке StreamingAssets (Read Only).
systemLanguageThe language the user's operating system is running in.
targetFrameRateInstructs game to try to render at a specified frame rate.
temporaryCachePathСодержит путь к временным данным / директории кэша (Read Only).
unityVersionThe version of the Unity runtime used to play the content.
versionВозвращает true, если целостность приложения может быть подтверждена.
webSecurityEnabledIndicates whether Unity's webplayer security model is enabled.

Static Functions

CancelQuitОтменяет выход из приложения. Может быть использовано для показа сплэш скрина перед выходом из игры.
CanStreamedLevelBeLoadedМожет ли потоковый уровень быть загружен?
CaptureScreenshotСохраняет скриншот в файл filename в формате PNG.
ExternalCallВызывает функцию в содержащей веб странице (только Web Player).
ExternalEvalОценивает фрагмент скрипта в содержащей веб странице (только Web Player).
GetStackTraceLogTypeGet stack trace logging options. The default value is StackTraceLogType.ScriptOnly.
GetStreamProgressForLevelКак далеко прогресс загрузки? [0...1].
HasProLicenseUnity активирован с Pro лицензией?
HasUserAuthorizationПроверка, чтобы пользователь разрешил использование веб камеры или микрофона в Web Player'е.
OpenURLОткрывает url в браузере.
QuitВыходит из игрового приложения.
RequestAdvertisingIdentifierAsyncRequest advertising ID for iOS, Android and Windows Store.
RequestUserAuthorizationЗапрос авторизации для использования веб камеры или микрофона в Web Player'е.
SetStackTraceLogTypeSet stack trace logging options. The default value is StackTraceLogType.ScriptOnly.

Events

logMessageReceivedEvent that is fired if a log message is received.
logMessageReceivedThreadedEvent that is fired if a log message is received.

Delegates

AdvertisingIdentifierCallbackDelegate method for fetching advertising ID.
LogCallbackUse this delegate type with Application.logMessageReceived or Application.logMessageReceivedThreaded to monitor what gets logged.