- Home /
What's the difference between print() and Debug.Log()
What's the difference between print() and Debug.Log() ?
Comment
Best Answer
Answer by Eric5h5 · Mar 12, 2011 at 10:06 AM
"print()" is 7 characters and "Debug.Log()" is 11 characters. ;) (Although in JS, you can use "import UnityEngine.Debug;" at the top of the script, and then just do "Log()" instead, which is 5 characters....) Print is an alias for Debug.Log, though it won't work in classes that don't derive from Monobehaviour.