プロファイラー (Unity Pro のみ)
イベントシステム

ログファイル

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

開発の際にビルドしたログをWeb Player,スタンドアローンプレイヤー,ターゲットデバイス,またはエディターから取得したい場合があるかもしれません。一般的には何か問題が発生したときにこのファイルをみて,どこで問題が発生したかを明確に確認します。

Mac では Web Player,プレイヤー,およびエディターのログは共通して標準的な Console.app ユーティリティで確認できます。

Windows では Web Playerおよびエディターのログは,デフォルトで Windows エクスプローラが隠すフォルダに格納されます。この状況を解決するには下記を参照して下さい。

エディター

エディターのログは Unity コンソール ウィンドウの Open Editor Log で見ることが出来ます。

Mac OS X ~/Library/Logs/Unity/Editor.log
Windows XP C:\Documents and Settings\username\Local Settings\Application Data_\Unity\Editor\Editor.log
Windows Vista/7 C:\Users\username\AppData\Local\Unity\Editor\Editor.log

(*) Windows上でエディター ログ ファイルはローカル アプリケーション データフォルダに格納されます:%LOCALAPPDATA%\Unity\Editor\Editor.log,ここで LOCALAPPDATACSIDL_LOCAL_APPDATA により定義されます。

Mac 上では,全てのログは共通して標準的な Console.app ユーティリティで確認できます。

Webplayer

Mac OS X ~/Library/Logs/Unity/WebPlayer.log
Windows XP C:\Documents and Settings\username\Local Settings\Temp\UnityWebPlayer\log\log_UNIQUEID.txt
Windows Vista/7 C:\Users\username\AppData\Local\Temp\UnityWebPlayer\log\log_UNIQUEID.txt
Windows Vista/7 + IE7 + UAC C:\Users\username\AppData\Local\Temp\Low\UnityWebPlayer\log\log_UNIQUEID.txt
  • ) Windows上で Web Player ログ ファイルはテンポラリ フォルダに格納されます: %TEMP%\UnityWebPlayer\log\log_UNIQUEID.txt,ここで TEMPGetTempPath により定義されます。.

Player

Mac OS X ~/Library/Logs/Unity/Player.log
Windows _EXECNAME_Data_\output_log.txt
Linux ~/.config/unity3d/CompanyName/ProductName/Player.log

(*) EXECNAME_Data はゲームの実行ファイルの隣にあるフォルダです。

Windowsスタンドアローンではログファイルの場所は変更が可能である(またはログ出力を止めることが出来る)ことに留意して下さい。詳細は コマンドライン を参照下さい。

iOS

デバイス ログは XCode の GDB コンソールまたは Organizer コンソールを通してアクセスが出来ます。後者は Xcode デバッガを通して実行してなかった場合に クラッシュ ログを取得するのに便利です。

iOS 開発ガイドの Debugging Applications を参照下さい。また Unityユーザマニュアルの トラブルシューティング および バグ レポート も役に立つ場合があります。

Android

デバイス ログは logcat console を使用して見ることが出来ます。 Android SDK/platform-tools ディレクトリ にある adb アプリケーションを使用して logcat 引数を付加して実行して下さい:

$ adb logcat

別の方法で LogCatを確認する方法は Dalvik Debug Monitor Server (DDMS) を使用する方法です。DDMS は Eclipse または Android SDK/tools の中から起動できます。DDMSはこのほかにデバッグ関連のツールを提供します。

Blackberry

On Blackberry, the log is available from the Player Settings (menu: Edit > Project Settings > Player). Select the Blackberry platform tab and among the Publishing Settings, you will find a Get Log button. Clicking this button will get the latest log from the device and display it using the default system text editor.

Note that the log only records details for the most recently run Unity project, so you will need to keep copies of logs yourself if you want to track details over several runs.

Accessing Log Files on Windows

On Windows the log files are stored in locations that are hidden by default. In Windows XP, you can make hidden folders visible in Windows Explorer using Tools->Folder Options…->View (tab).

On Windows Vista/7 you can make the AppData folder visible in Windows Explorer using Tools->Folder Options…->View (tab). The Tools menu is hidden by default, but can be displayed by pressing the Alt key once.

プロファイラー (Unity Pro のみ)
イベントシステム