facebook twitter hatena line email

Unity/Csharp/ログ

提供: 初心者エンジニアの簡易メモ
移動: 案内検索

ログの記述方法

using UnityEngine;
Debug.Log("ログです");
Debug.LogError("エラーログです");
Debug.Log("hoge=" + hoge);
Debug.Log($"hoge={hoge}");

ログは、Consoleに表示される。

Consoleは、Unityメインメニュー/Window/General/Consoleで、開く。