/DebugLogStyle_01.cs Secret
Created
September 11, 2021 11:37
Star
You must be signed in to star a gist
UnityのDebugクラスにあるメソッドのサンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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