Unity Issue Tracker - "InvalidCastException: Specified cast is not valid" error is thrown when accessing UnityEngine.Material "Value" Property in UnityObjectRef
Closed
ECSB-956
"InvalidCastException: Specified cast is not valid" error is thrown when accessing UnityEngine.Material "Value" Property in UnityObjectRef
Package: Entity Component System (ECS)
Won't Fix
1.1.X
1.0.X
This bug is fixed in 1.2.0+ we have no plans to fix it in any earlier version. We recommend users upgrade if they encounter this issue.
Reproduction steps:
1. Open the “ReproProject“ project
2. Open the “Assets/Scenes/SampleScene“ scene
3. Enter Play Mode
4. Observe the Console window
Expected result: There are no errors in the Console window
Actual result: “InvalidCastException: Specified cast is not valid.“ error is thrown in the Console window