I'm currently writing a debug script and would like to add colors to certain parts of the debug messages. Reading the unity docs lead me to believe that I can use the Rich text formatting. Like it is explained here. I'm using the Debug.LogForamt()
.
Logs a formatted message to the Unity Console.
For formatting details, see the MSDN documentation on Composite Formatting. Rich text markup can be used to add emphasis.
This is from the unity docs. My code looks like this :
Debug.LogFormat("Status of some gameObject is : <color = red>{0}</color>" +
"Status of another gameObjcet is: <color = red>{1}</color>",
gameObject1.activeInHierarchy,gameObject2.activeInHierarchy);
This just outpust the strings as plain text. What am I doing wrong ?