Version: 2023.1
言語: 日本語


class in UnityEngine



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).
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アプリケーションをインストールしたストア、または、パッケージ名を返します (読み込み専用)。
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).
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).
runInBackgroundShould the Player be running when the application is in the background?
streamingAssetsPathThe path to the StreamingAssets folder (Read Only).
targetFrameRateSpecifies the frame rate at which Unity tries to render your game.
unityVersionUnity のバージョンを返す。

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.
RequestAdvertisingIdentifierAsyncRequest advertising ID for iOS and Windows Store.
RequestUserAuthorizationRequest authorization to use the webcam or microphone on iOS and WebGL.
SetStackTraceLogTypeスタックトレースのロギングのオプションを設定します。デフォルト値は StackTraceLogType.ScriptOnly です。
UnloadUnloads the Unity Player.


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.
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.


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.