Version: 2023.1
时间 (Time)
Visual Studio C# 集成

UI Toolkit project settings

To view the UI Toolkit project settings, go to Edit > Project Settings > UI Toolkit.

UI Builder

When you create a new UI Document (UXML) in the UI Builder, certain features are set by default:

  • The UI Document is set to suit runtime UI.
  • The UI Builder library only displays UI controls that are available for runtime UI.
  • You can easily zoom in and out of the canvas of the Viewport window in UI Builder using your mouse wheel or trackpad.

To ensure that newly created documents are, by default, compatible with Editor UI and that the UI Builder library displays the additional controls for Editor UI, select Enable Editor Extension Authoring by Default. For more information, refer to Enable Editor Extension Authoring for UI Documents (UXML).

To disable zooming on your canvas using your mouse wheel or trackpad, select Disable Viewport Zooming via Mouse Wheel/Trackpad.

Advanced

The UI Toolkit Event Debugger is an experimental feature that helps you to discover how various UI Toolkit events, such as input, layout, and paint, are handled. The UI Toolkit Event Debugger window is disabled by default. To enable it, Select Enable Event Debugger. To access it once enabled, select Windows > UI Toolkit > Event Debugger.

The UI Toolkit Layout Debugger is an experimental feature that helps you to discover what styles and settings affect an element on the screen. The UI Toolkit Layout Debugger window is disabled by default. To enable it, Select Enable Layout Debugger. To access it once enabled, select Windows > UI Toolkit > Layout Debugger.

其他资源

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