-
-
Save todorok1/b93870f95878dd2a315d8cd89e041e40 to your computer and use it in GitHub Desktop.
Debug.Logで出力するメッセージに色をつけるサンプル
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 OutputStyleMessage() | |
{ | |
// 太字 | |
Debug.Log("くお〜!! ぶつかる〜!! <b>ここでアクセル全開、インド人を右に!</b>"); | |
// 斜体 | |
Debug.Log("くお〜!! ぶつかる〜!! <i>ここでアクセル全開、インド人を右に!</i>"); | |
// サイズ | |
Debug.Log("ザンギュラは<size=28>スーパーウリアッ上</size>が出せる"); | |
// 色 | |
Debug.Log("ザンギュラは<color=cyan>スーパーウリアッ上</color>が出せる"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment