Version: 2023.2
언어: 한국어

Application

class in UnityEngine

매뉴얼로 전환

설명

Access to application runtime data.

This class contains static methods for looking up information about and controlling the runtime data.

정적 변수

absoluteURLThe URL of the document. For WebGL, this is a web URL. For Android, iOS, or Universal Windows Platform (UWP) this is a deep link URL (Read Only).
backgroundLoadingPriorityPriority of background loading thread.
buildGUIDReturns a GUID for this build (Read Only).
cloudProjectIdA unique cloud project identifier. It is unique for every project (Read Only).
companyNameReturns application company name (Read Only).
consoleLogPathReturns the path to the console log file, or an empty string if the current platform does not support log files.
dataPathContains the path to the game data folder on the target device (Read Only).
exitCancellationTokenCancellation token raised on exiting Play mode (Editor) or on quitting the application (Read Only).
genuineReturns false if application is altered in any way after it was built.
genuineCheckAvailableReturns true if application integrity can be confirmed.
identifierReturns the application identifier at runtime.
installerNameReturns the name of the store or package that installed the application (Read Only).
installModeReturns application install mode (Read Only).
internetReachabilityReturns the type of internet reachability currently possible on the device.
isBatchModeReturns true when Unity is launched with the -batchmode flag from the command line (Read Only).
isConsolePlatformIs the current Runtime platform a known console platform.
isEditorWhether the game is running inside the Unity Editor (Read Only).
isFocusedWhether the Player currently has focus (Read Only).
isMobilePlatformIdentifies whether the current Runtime platform is a known mobile platform.
isPlayingReturns true when called in any kind of built Player, or when called in the Editor in Play mode (Read Only).
persistentDataPathContains the path to a persistent data directory (Read Only).
platformReturns the platform the game is running on (Read Only).
productNameReturns application product name (Read Only).
runInBackgroundShould the Player be running when the application is in the background?
sandboxTypeReturns application running in sandbox (Read Only).
streamingAssetsPathThe path to the StreamingAssets folder (Read Only).
systemLanguageThe language the user's operating system is running in.
targetFrameRateSpecifies the frame rate at which Unity tries to render your game.
temporaryCachePathContains the path to a temporary data / cache directory (Read Only).
unityVersionThe version of the Unity runtime used to play the content.
versionReturns application version number (Read Only).

정적 함수

CanStreamedLevelBeLoadedChecks if the streamed level can be loaded.
GetStackTraceLogTypeGet stack trace logging options. The default value is StackTraceLogType.ScriptOnly.
HasProLicenseIs Unity activated with the Pro license?
HasUserAuthorizationCheck if the user has authorized use of the webcam or microphone on iOS and WebGL.
IsPlayingReturns true if the given object is part of the playing world either in any kind of built Player or in Play Mode.
OpenURLOpens the URL specified, subject to the permissions and limitations of your app’s current platform and environment.
QuitQuits the player application.
RequestAdvertisingIdentifierAsyncRequest advertising ID for iOS and Windows Store.
RequestUserAuthorizationRequest authorization to use the webcam or microphone on iOS and WebGL.
SetStackTraceLogTypeSet stack trace logging options. The default value is StackTraceLogType.ScriptOnly.
UnloadUnloads the Unity Player.

Events

deepLinkActivatedThis event is raised when an application running on Android, iOS, or the Universal Windows Platform (UWP) is activated using a deep link URL.
focusChangedDefines the delegate to use to register for events in which the focus gained or lost.
logMessageReceivedEvent that is fired if a log message is received.
logMessageReceivedThreadedEvent that is fired if a log message is received.
lowMemoryThis event occurs when your app receives a low-memory notification from the device it is running on.
memoryUsageChangedInforms about significant changes in the application's memory usage.
onBeforeRenderDelegate method used to register for "Just Before Render" input updates for VR devices.
quittingUnity raises this event when the Player application is quitting.
unloadingUnity raises this event when Player is unloading.
wantsToQuitUnity raises this event when the Player application wants to quit.

델리게이트

AdvertisingIdentifierCallbackDelegate method for fetching advertising ID.
LogCallbackUse this delegate type with Application.logMessageReceived or Application.logMessageReceivedThreaded to monitor what gets logged.
LowMemoryCallbackThis is the delegate function when a mobile device notifies of low memory.
MemoryUsageChangedCallbackA delegate for the Application.memoryUsageChanged vent.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961