LoginSignup
4
3

More than 5 years have passed since last update.

メモ:Debug.Logに色を付ける(RGB指定)、シンボル設定

Last updated at Posted at 2014-08-11

しょっちゅう忘れるのでメモっておく

color と < の間のスペースは削除してください。
なんかHTMLとして認識されるのでスペース開けるしかなかったです。

Debug.Log("< color=green>Awake< /color>");
Debug.Log("< color=blue>Awake< /color>");
Debug.Log("< color=red>Awake< /color>");
Debug.Log("< color=yellow>Awake< /color>");

●RGB指定
Debug.Log("< color=#33ccff>OnClick()");

●シンボルも付けておこう

#if DEBUG_LOG_DISPLAY
Debug.Log("< color=green>Awake< /color>");
#endif

■シンボル設定
Build Settings->Player Settings->
Other Settings->Scripting Define Symbols

4
3
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
4
3