LoginSignup
0
0

More than 3 years have passed since last update.

[Unity初級]デバッグをひと工夫(Debug.Logの応用)

Posted at

概要

手軽にログの見た目を変えて、気を付けるべき箇所に注意を向けやすくなります。

本文


        if (a < 4) {
            Debug.Log("普通のデバッグログ");
        } else if(a<100) {
            Debug.LogWarning("異常を知らせるログ(LogWarning)");
        } else {
            Debug.LogError("異常を知らせるログ(LogError)");
        }

スクリーンショット (1222).png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0