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
- Crash on ScriptableBatchRenderer::RenderMultipleMeshes when entering the Play mode on a specific project
- Child's Awake is called before parent's Awake when entering Play Mode
- [iOS] Undefined Symbol Error is thrown in Xcode when using Debug.CheckIntegrity
- Crash on Transform::SetParent when duplicating a Prefab in the Hierarchy
- Crash with multiple stack traces when opening a specific project containing a corrupt file
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.