Search Issue Tracker
Fixed in 1.0.0-preview.8
Votes
1
Found in [Package]
1.0.0-preview.3
Issue ID
1263454
Regression
No
[UI Toolkit] UXML Inlined Styles aren't applied in a build when UXML file is saved
How to reproduce:
1. Open the attached project (case-1263454.zip)
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)
Workarounds:
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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Vulkan] [Android] Visual corruption is visible on some Android devices in the Player when Depth Of Field is enabled in Global Volume and the Vulkan Graphics API is selected
- An image bleeds out of the borders of a Mask when the project is opened with the iOS Build Support module
- Shadows do not appear on the Material with a custom shader which uses screen space shadow map in HDRP when Ray Traced Shadows are enabled
- An emoji is not shown in the UI Builder Viewport and the Game view when it is placed in the Labels text attribute and Usage Hints is set to Dynamic Color
- The Sprite Renderers are looking for Secondary Textures from the wrong page within the Sprite Atlas when the Sprite Atlas has a large amount of textures for packing
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.