After looking at this reference page: http://docs.unity3d.com/ScriptReference/Debug.Log.html
I have this variable at the top of my code
private Color[] color_debug_log = new Color[]{ Color.red,
Color.green,
Color.blue,
Color.magenta};
when I debug log like this however
Debug.Log ("Player " + 1 + " joined the game");
it gives me default color, instead of green. Is it not possible to use color variable in these cases? the fact that the tag must be inside string is something I can see being a problem when trying to access a variable.
↧