Debug.Log is just a function. It is essentialy same as "print" in php, WriteLine in C# etc. The only difference is it writes directly into unity console.
It logs whatever you give it.
Debug.Log("Write this")
Will display: "Write this" in console. Of course you can insert any object as parameter and toString will automatically be called on it and then written out in console.
↧