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
- Undefined symbol errors appear when building Xcode project using BuildPipeline.BuildPlayer
- Building a Player fails when using special characters in “Product Name” field
- [VFXG] Clicking on Allow Instancing box resets exposed properties to default values
- [iOS] Unable to select streaming apps when using broadcasting on iOS device
- [iOS] Specular lightning is inconsistent when using iOS
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.