Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created September 11, 2021 11:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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