Debug.Logstatic function Log (message : object) : voidDescriptionLogs message to the Unity Console.
JavaScript
Debug.Log ("Hello"); using UnityEngine; import UnityEngine static function Log (message : object, context : Object) : voidDescriptionLogs message to the Unity Console. When you select the message in the console a connection to the context object will be drawn. This is very useful if you want know on which object an error occurs.
JavaScript
Debug.Log ("Hello", gameObject); using UnityEngine; import UnityEngine |
