UI Builder Viewport is useless when building editor tooling

When creating Editor extensions with UI Toolkit (custom property drawers, windows, etc.), the viewport is completely useless because it does not reflect the real outcome.

Example in my extension:

Example using the Create > UI Toolkit > Editor Window menu.

The viewport apparently does not take into account any editor style, so the layout and proportions are mostly incorrect. This makes editor tooling quite annoying to build.

Hi,
By default it will be using the runtime theme.

You can change it to the editor by first enabling editor extension authoring mode

You can now select an editor theme

1 Like