Search Issue Tracker
By Design
Votes
0
Found in [Package]
1.0.0-preview.18
Issue ID
1385946
Regression
No
'Trying to read value of type Color while reading a value of type Keyword' error when entering Play mode
Reproduction steps:
1. Open the user's attached project
2. Open the 'SampleScene'
3. Enter Play mode
Expected result: No errors are in the Console
Actual result: Multiple 'Trying to read value of type Color while reading a value of type Keyword' errors are in the Console
Reproducible with: 1.0.0-preview.17, 1.0.0-preview.18 (2020.3.28f1)
Could not test with: 1.0.0-preview.18 (2019.4.35f1), Built-in (2021.2.12f1, 2022.1.0b6, 2022.2.0a6) (due to compile errors)
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
- Broken UI in Default Preset Add Section of "Preset Manager" window
- [iOS] The Player freezes when closing the Notification Center and quickly swiping down from top
- Crash on Texture2D:SetPixelImpl when rapidly calling Texture2D.Apply()
- Graph Lines are not rendered when using Experimental GraphView or GridBackground
- [macOS] RenderTexture with 8 Sample Anti-Aliasing fails to render
Resolution Note:
Reimporting the Card.uss Stylesheet gives me the following warning message:
"Assets/User Interface/Menu/Styles/Cards.uss (line 28): warning: Expected (<color>) but found 'none'
background-color: none -> Unsupported color 'none'."
The keyword "none" is not supported for the "background-color" property. In this case, you probably need to use "transparent" instead. I've tried it in your project and it resolved both the import warning and the runtime error.