Version: 2023.2
言語: 日本語

Application

class in UnityEngine

マニュアルに切り替える

説明

Provides access to application runtime data.

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

Static 変数

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).
backgroundLoadingPriorityバックグラウンドのスレッドの優先順位を設定します。
buildGUIDReturns a GUID for this build (Read Only).
cloudProjectIdクラウドプロジェクトの ID。これは必ずユニークな ID です(読み取り専用)
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).
genuineアプリケーションが構成された後、なんらかの変更があった場合に false を返します
genuineCheckAvailableアプリケーションの整合性が確認できる場合は true を返します。
identifierReturns the application identifier at runtime.
installerNameアプリケーションをインストールしたストア、または、パッケージ名を返します (読み込み専用)。
installModeアプリケーションのインストールモードを返します(読み取り専用)
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).
isConsolePlatform現在のランタイムプラットフォームがコンソールであるかどうか
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).
platformゲームが何のプラットフォームで実行されているかを返します(読み取り専用)
productNameアプリケーションのプロダクト名(製品名)(読み取り専用)
runInBackgroundDetermines whether the Player should run when the application is in the background
sandboxTypeReturns application running in a sandbox environment (Read-only).
streamingAssetsPathThe path to the StreamingAssets folder (Read Only).
systemLanguageThe language in which the user's operating system is running in.
targetFrameRateSpecifies the target frame rate at which Unity tries to render your game.
temporaryCachePath一時的なデータ、キャッシュのディレクトリパスを返します(読み取り専用)
unityVersionUnity のバージョンを返す。
versionReturns application version number (Read Only).

Static 関数

CanStreamedLevelBeLoadedChecks if the streamed level can be loaded.
GetStackTraceLogTypeスタックトレースのロギングのオプションを取得します。デフォルト値は StackTraceLogType.ScriptOnly です。
HasProLicensePro ライセンスでアクティベートされているかどうか
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.
Quitアプリケーションを終了します。
RequestAdvertisingIdentifierAsyncRequest an advertising ID for iOS and UWP.
RequestUserAuthorizationRequest authorization to use the webcam or microphone on iOS and WebGL.
SetStackTraceLogTypeスタックトレースのロギングのオプションを設定します。デフォルト値は 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.
logMessageReceivedログメッセージが発行されたときに受信するためのイベントハンドラー
logMessageReceivedThreadedログメッセージが発行されたときに受信するためのイベントハンドラー
lowMemoryThe Application._lowMemory event occurs when your application receives a low-memory notification from the device it is running on.
memoryUsageChangedInforms about significant changes in the application's memory usage.
onBeforeRenderA delegate 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 the Player is unloading.
wantsToQuitUnity raises this event when the Player application wants to quit.

デリゲート

AdvertisingIdentifierCallbackAdvertising ID をフェッチするためのデリゲートメソッド
LogCallbackログとして保存されるものをモニタリングするために Application.logMessageReceived や Application.logMessageReceivedThreaded で使用されるデリゲートです。
LowMemoryCallbackThis is the delegate function when a mobile device notifies of low memory.
MemoryUsageChangedCallbackA delegate for the Application.memoryUsageChanged vent.