Debug.Log("Hello, World");
using UnityEngine;
using System.Collections;
public class MyGameClass : MonoBehaviour
{
void Start()
{
Debug.Log("Logging Message to Console");
Debug.LogWarning("Logging Warning to Console");
Debug.LogError("Logging Error to Console");
}
}
#if UNITY_EDITOR
Debug.logger.logEnabled = true;
#else
Debug.logger.logEnabled = false;
#endif