Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
0.11.2-preview
Issue ID
1248646
Regression
No
UI Builder Style settings are not applied to Elements when the Theme is set to Runtime with imported UIElements Runtime package
How to reproduce:
1. Create a new project
2. Import the UI Builder from the Package Manager
3. Import the UIElements Runtime package (add "com.unity.ui.runtime": "0.0.4-preview" in manifest.json)
4. Open the UI Builder window (Window -> UI -> UI Builder)
5. Make sure the UI Builder Theme is set to any of these: Default, Dark, Light
6. In the UI Builder Hierarchy add a Button Element
7. Create a new USS file
8. In the newly created USS file create a new USS selector: '.unity-button'
9. Save the UXML file and select the newly appeared selector
10. Change any Style setting (for example, Text -> Color)
11. Change the UI Builder Theme to Runtime
Expected result: the new Style settings (different Text Color) applies to the button in all of the Themes
Actual result: the Style settings do not apply in Runtime Theme
Reproducible with: 0.8.2-prevew (2019.3.15f1), 0.11.2-preview (2019.3.15f1, 2020.1.0b10, 2020.2.0a12)
Could not test with: 0.8.1-preview and below (2019.3.15f1) (Runtime Theme not introduced)
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
- Create Node Menu is not closing and “NullReferenceException: Object reference not set to an instance of an object” error is thrown when Shader Graph window is closed
- Assert error is thrown when the Editor language is set to one of the experimental ones in an HDRP project
- A BatchDrawCommand is using a pass from the shader “Universal Render Pipeline/Particles/Lit” that is not SRP Batcher compatible
- The Scene does not get rendered in the Player when MSAA is enabled and more than one Camera is used
- Crash on mono_object_get_class when generating Font Atlas of a specific font file
Resolution Note:
Using latest UI Builder with the unpublished, hidden com.unity.ui.runtime package is not a supported situation for now. Please wait a bit for us to release the proper UI Toolkit (with Runtime) package.
As a side note: If the problem also exists outside of the UI Builder - when running the UI at runtime in the Game view for example, we can keep an eye. If it's just the builder's preview of the theme that's broken, we will wait.