Search Issue Tracker
Fixed
Fixed in 6000.3.0b2, 6000.4.0a1
Votes
0
Found in
6000.3.0b1
Issue ID
UUM-116354
Regression
Yes
Error "InvalidCastException: Specified cast is not valid." is logged and Lightmap Parameters cannot be changed in a Mesh Renderer Component
Steps to reproduce:
- Open any Project
- In a Scene's Hierarchy create a Cube Game Object and select it
- In the Inspector, enable "Contribute Global Illumination"
- Open the dropdown menu for "Lightmap Parameters" and select any of the default options and observe the Console
- Try to create a new Parameters Asset then try to switch back to the default Parameters then to the newly created custom Parameters
Actual results: Error "InvalidCastException: Specified cast is not valid.
UnityEditor.AssetPopupBackend.AssetPopupMenuCallback (System.Object userData) (at <1d669ed6d2a0471d82e2f635ab61f1fb>:0)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, System.Int32 selected) (at <1d669ed6d2a0471d82e2f635ab61f1fb>:0)" is logged, the Parameters do not switch, when creating new Parameters they are automatically assigned, but if switching back to default Parameters and then back to the custom Parameters the error is logged again and Parameters are not switched
Expected results: Parameters can be switched to the default Preset Parameters or custom Parameters at all times
Reproducible with versions: 6000.3.0a5, 6000.3.0b1
Not reproducible with versions: 2022.3.66f1, 6000.0.57f1, 6000.1.16f1, 6000.2.3f1, 6000.3.0a4
Tested on (OS): Windows 11
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Asset Bundles] A new bundle hash is not generated when the name of a serialized field is changed
- Icon section shows incomplete message and unusable check box in Build Profiles and Player Settings window instead of “Not applicable for this platform” for Dedicated Server Platform
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
- [Windows] No minimum “Select” window size
Add comment