Version: 2023.1
LanguageEnglish
  • C#

Debug.developerConsoleEnabled

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public static bool developerConsoleEnabled;

Description

Allows you to enable or disable the developer console.

The developer console is a window that can appear when a development build of your project is running. It is similar to the Console window in the Editor, but appears at runtime. Enabling this property does not immediately make the developer console appear, instead it appears when the first error or assertion is logged. This property is enabled by default in development builds.

Disabling this property when the developer console is open clears the contents of the developer console and hides it. You can check whether the developer console is currently visible, and hide or show it without clearing its contents, by using Debug.developerConsoleVisible.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961