Reports whether the development console is visible. The development console cannot be made to appear using:
#pragma strict public class OpenDevConsoleScript extends MonoBehaviour { function Start() { Debug.developerConsoleVisible = true; } }
using UnityEngine;
public class OpenDevConsoleScript : MonoBehaviour { void Start() { Debug.developerConsoleVisible = true; } }
As it will automatically appear once an error has been logged. For example:
#pragma strict public class LogErrorScript extends MonoBehaviour { function Start() { Debug.LogError("I am an Error"); } }
using UnityEngine;
public class LogErrorScript : MonoBehaviour { void Start() { Debug.LogError("I am an Error"); } }
However, you can close the development console once opened by using:
#pragma strict public class CloseDevConsoleScript extends MonoBehaviour { function Start() { Debug.developerConsoleVisible = false; } }
using UnityEngine;
public class CloseDevConsoleScript : MonoBehaviour { void Start() { Debug.developerConsoleVisible = false; } }