- Home /
Create a Debug.Log() system similar to Console.WriteLine()
Is there already a tool available to use Unity's Debug.Log() like the Console.WriteLine() class, or is it possible to write a class which uses the Console class but outputs to Unity's debug window?
I hate having to do ("Blabla: " + var + "Blabla: " + var2...) instead of ("Blabla: {0}, Blabla: {1}" var1, var2).
If this isn't possible then I'll just be quiet and enjoy Debug.Log() for what it is :)
Thx for your time guys, Stephane
Comment
Best Answer
Answer by whydoidoit · Jun 10, 2012 at 09:22 AM
You can use Debug.Log(string.Format("Blah blah {0}, Blah blah {1}", var1, var2));
Oh thank you, didn't think of that! You just made my day :)