Version: 2022.2

Debug.developerConsoleEnabled

切换到手册
public static bool developerConsoleEnabled ;

描述

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