UI Element breaks down in build

Hi there. Let me ask you directly from screen shots:

Editor:
8394450--1107882--upload_2022-8-27_0-32-4.png

Build:
8394450--1107885--upload_2022-8-27_0-32-39.png

Canvas Scaler component is set to Scale With Screen Size and Reference Resolution is 1920 to 1080.

Why could I have this problem?

8394450--1107873--upload_2022-8-27_0-27-6.png
8394450--1107876--upload_2022-8-27_0-28-49.png
8394450--1107879--upload_2022-8-27_0-30-0.png

If you’re still having this issue, consider reposting in the main UI Toolkit forum (Unity Engine - Unity Discussions) as the Blitz Day is long over.

And while the info you provided is very helpful, more context is needed to try and debug. Posting the style property values for those buttons would be a good addition. Also, confirm that by “Build”, do you mean a built Player or does this problem also happen in the Scene view in Play mode?

1 Like