Unity – Debug.Log 색상 변경

// Default
Debug.Log("Default");

Debug.Log("<color=white>White</color>");
Debug.Log("<color=grey>Grey</color>");
Debug.Log("<color=black>Black</color>");
Debug.Log("<color=red>Red</color>");
Debug.Log("<color=green>Green</color>");
Debug.Log("<color=blue>Blue</color>");
Debug.Log("<color=yellow>Yellow</color>");
Debug.Log("<color=cyan>Cyan</color>");
Debug.Log("<color=brown>Brown</color>");

// Hex Color
Debug.Log("<color=#fa56d6> Hex Color1 </color>");
Debug.Log("<color=#74fa56> Hex Color1 </color>");
Debug.LogFormat("<color=yellow> Yellow </color>" + "<color=black> Black </color>");

댓글 달기

Translate »
Scroll to Top