Version: 2017.4

Application

class in UnityEngine

マニュアルに切り替える

説明

アプリケーションの実行データにアクセスします。

このクラスには、実行データを制御したり情報を取得するための、static メソッドが含まれています。

Static 変数

absoluteURLThe URL of the document (what is shown in a browser's address bar) for WebGL (Read Only).
backgroundLoadingPriorityバックグラウンドのスレッドの優先順位を設定します。
buildGUIDReturns a GUID for this build (Read Only).
cloudProjectIdクラウドプロジェクトの ID。これは必ずユニークな ID です(読み取り専用)
companyNameアプリケーションを提供している会社名(読み取り専用)
dataPathゲームデータのフォルダーパスを返します(読み取り専用)
genuineアプリケーションが構成された後、なんらかの変更があった場合に false を返します
genuineCheckAvailableアプリケーションの整合性が確認できる場合は true を返します。
identifierReturns application identifier at runtime. On Apple platforms this is the 'bundleIdentifier' saved in the info.plist file, on Android it's the 'package' from the AndroidManifest.xml.
installerNameアプリケーションをインストールしたストア、または、パッケージ名を返します (読み込み専用)。
installModeアプリケーションのインストールモードを返します(読み取り専用)
internetReachabilityインターネットのアクセス状態を返します。
isConsolePlatform現在のランタイムプラットフォームがコンソールであるかどうか
isEditorエディター上でプレイしているかを確認します(読み取り専用)
isFocusedWhether the player currently has focus. Read-only.
isMobilePlatform現在のランタイムプラットフォームがモバイルであるかどうか
isPlayingReturns true when in any kind of player is active.(Read Only).
persistentDataPath永続的なデータディレクトリのパスを返します(読み取り専用)
platformゲームが何のプラットフォームで実行されているかを返します(読み取り専用)
productNameアプリケーションのプロダクト名(製品名)(読み取り専用)
runInBackgroundゲーム画面がバックグラウンドでも実行されるべきかを設定します。
sandboxTypeサンドボックス内での実行モードを返します(読み取り専用)
streamedBytesメインの Web ストリームから今までダウンロードしたバイト数を返します(読み取り専用)
streamingAssetsPathStreamingAssets フォルダーへのパスが含まれています(読み取り専用)
systemLanguage言語はユーザーのオペレーティングシステムで実行されているものです。
targetFrameRateゲームのフレームレートを設定します。
temporaryCachePath一時的なデータ、キャッシュのディレクトリパスを返します(読み取り専用)
unityVersionUnity のバージョンを返す。
versionアプリケーションのバージョン番号を返します(読み取り専用)

Static 関数

CancelQuitアプリケーションの終了を取り消します。これはゲーム終了時にスプラッシュスクリーンを表示するのに便利です。
CanStreamedLevelBeLoadedストリーム用のレベルが読み込めるかどうか
GetBuildTagsReturns an array of feature tags in use for this build.
GetStackTraceLogTypeスタックトレースのロギングのオプションを取得します。デフォルト値は StackTraceLogType.ScriptOnly です。
GetStreamProgressForLevelどこまでダウンロードされているかを返します( 0 から 1 )
HasProLicensePro ライセンスでアクティベートされているかどうか
HasUserAuthorizationWeb Player で Web カメラやマイクの許可を行っているかを確認します。
OpenURLWeb ブラウザーで url の場所を開きます。
Quitアプリケーションを終了します。
RequestAdvertisingIdentifierAsynciOS、Android、Windows ストア用の Advertising ID を求めます。
RequestUserAuthorizationWeb Player で Web カメラやマイクを使用する際にユーザーに許可を求めます。
SetBuildTagsSet an array of feature tags for this build.
SetStackTraceLogTypeスタックトレースのロギングのオプションを設定します。デフォルト値は StackTraceLogType.ScriptOnly です。
UnloadUnity のランタイムを終了します。

Events

logMessageReceivedログメッセージが発行されたときに受信するためのイベントハンドラー
logMessageReceivedThreadedログメッセージが発行されたときに受信するためのイベントハンドラー
lowMemoryThis event occurs when an iOS or Android device notifies of low memory while the app is running in the foreground. You can release non-critical assets from memory (such as, textures or audio clips) in response to this in order to avoid the app being terminated. You can also load smaller versions of such assets. Furthermore, you should serialize any transient data to permanent storage to avoid data loss if the app is terminated.This event corresponds to the following callbacks on the different platforms: - iOS: [UIApplicationDelegate applicationDidReceiveMemoryWarning] - Android: onLowMemory() and onTrimMemory(level == TRIM_MEMORY_RUNNING_CRITICAL)Here is an example of handling the callback:
onBeforeRenderDelegate method used to register for "Just Before Render" input updates for VR devices.

デリゲート

AdvertisingIdentifierCallbackAdvertising ID をフェッチするためのデリゲートメソッド
LogCallbackログとして保存されるものをモニタリングするために Application.logMessageReceived や Application.logMessageReceivedThreaded で使用されるデリゲートです。
LowMemoryCallbackThis is the delegate function when a mobile device notifies of low memory.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961