Inspector preview of UXML files do not match UI Builder colours
Unity: UI Toolkit Framework
UI Builder
As Designed
2023.2.X
Currently, this is a known limitation in the Editor. The Editor cannot render with the same gamma/linear settings as the runtime. Fixing this is major feature work that is part of the long term roadmap.
Repro:
1. Import attached UXML.
2. Click on the uxml in the Project view to view in Inspector. You may need to unminimize the preview from the bottom.
Expected: Preview colours match the colours visible in UI builder.
Actual: Preview colours are not the same as the ones in the UI builder.
[Internal link]
Reproducible in 2023.1.0a1, 2023.2.0a20
Not reproducible in 2021.3.23f1, 2022.3.3f1
Note: The visuals in inspector vs UI Builder are not quite the same either, but this doesn't seem to be a regression.
Prioritise and Follow this issue
Have a workaround or additional info about this issue?