Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created September 11, 2021 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todorok1/f6c16a4bfe5f0f12f69a87cd66927341 to your computer and use it in GitHub Desktop.
Save todorok1/f6c16a4bfe5f0f12f69a87cd66927341 to your computer and use it in GitHub Desktop.
UnityのDebugクラスにあるメソッドのサンプル
/// <Summary>
/// Debug.Logで出力されるメッセージのログレベルを設定するメソッドです。
/// </Summary>
void OutputMessage()
{
// デバッグレベルの通常のメッセージ
Debug.Log("通常のメッセージ");
// 警告レベルのメッセージ
Debug.LogWarning("警告メッセージはアイコンが黄色に");
// エラーレベルのメッセージ
Debug.LogError("エラーメッセージだと赤色に!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment