how to print to unity console in c# script code example
Example 1: unity print to console
// To print in the console use "Debug.Log()"
Debug.Log("Text");
Example 2: debug.log
Debug.Log("Hello world");
// To print in the console use "Debug.Log()"
Debug.Log("Text");
Debug.Log("Hello world");