Logs message
to the Unity Console.
Debug.Log ("Hello");
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { Debug.Log("Hello"); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: Debug.Log('Hello')
Logs message
to the Unity Console.
Debug.Log ("Hello", gameObject);
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { Debug.Log("Hello", gameObject); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: Debug.Log('Hello', gameObject)