Search Issue Tracker

Fixed in 1.0.0-preview.8



Found in [Package]


Issue ID




[UI Toolkit] UXML Inlined Styles aren't applied in a build when UXML file is saved

Package: UI Builder


How to reproduce:
1. Open the attached project (
2. Open the UI Builder window (Window -> UI Toolkit -> UI Builder)
3. In the UI Builder Hierarchy of test.uxml expand the 'VisualElement' Container and select one of the 'Label' Controls
4. Make any Inlined Styles changes (for example, change the color of the Text)
5. Save the test.uxml file
6. Build and Run the project

Expected result: the Inlined Styles are applied both in the Editor Game View and in the built Player
Actual result: the Inlined Styles are not applied to the built Player

Reproducible with: 1.0.0-preview.3 (2020.1.0f1), 1.0.0-preview.6 (2020.2.0a19)

Could not test with: 2018.4.26f1, 2019.4.6f1 (package not compatible)

1. Exit and reopen the project after making changes to the UXML file
2. Open the test.uxml in the code editor and make any changes (adding a meaningless whitespace symbol is enough) and save the file

  1. Resolution Note (fix version 1.0.0-preview.8):

    Note that the whitespace in inline styles had nothing to do with the root issue, which was that the UI Builder was incorrectly overriding the inline StyleSheet asset inside a VisualTreeAsset (UXML) when saving it. This was fixed.

Add comment

Log in to post comment